Bazel rules for jest
Runs tests with the https://jestjs.io/ test runner under Bazel.
Many companies are successfully testing with rules_jest. If you're getting value from the project, please let us know! Just comment on our Adoption Discussion.
rules_jest is just a part of what Aspect provides:
- Need help? This ruleset has support provided by https://aspect.dev.
- See our other Bazel rules, especially those built for rules_js, such as rules_ts for TypeScript: https://github.com/aspect-build
From the release you wish to use:
copy the WORKSPACE snippet into your
Run all Jest tests in the workspace:
bazel test --test_lang_filters=jest //...
Note that the example also relies on code in the
/WORKSPACEfile in the root of this repo.