Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to get jest tests working #4

Open
igilham opened this issue Sep 11, 2019 · 4 comments · May be fixed by #34
Open

Try to get jest tests working #4

igilham opened this issue Sep 11, 2019 · 4 comments · May be fixed by #34

Comments

@igilham
Copy link
Owner

igilham commented Sep 11, 2019

Add an example of running tests with jest.

@igilham
Copy link
Owner Author

igilham commented Sep 12, 2019

It should be possible using something like this (paths are probably wrong):

   nodejs_test(
       name = "jest",
       entry_point = "@npm//:node_modules/jest/bin/cli.js",
       data = ["@npm//jest"],
   )
   ```

@igilham
Copy link
Owner Author

igilham commented Sep 12, 2019

this may help

@igilham
Copy link
Owner Author

igilham commented Sep 27, 2019

The new npm_package_bin rule may work better and with less effort.

@igilham
Copy link
Owner Author

igilham commented Oct 11, 2019

rules_nodejs version 0.38.2 has new support for this.

@igilham igilham linked a pull request Mar 30, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant