rules_jest
v0.23.3
published 5 days ago
24 stars
20 forks
5 watchers
Apache License 2.0
public
4 assets
48,206 downloads
216 KB
Compatibility level 1
1XZi964xzHl78dt16ilHVZ5c9gufQ+9Fdb7kzh5nYTs=
v0.23.3
August 13, 2025
[expand for release notes]

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:

Installation

Follow instructions from the release you wish to use: https://github.com/aspect-build/rules_jest/releases

Usage

Run all Jest tests in the workspace: bazel test --test_lang_filters=jest //...

See jest_test API documentation and the example usages in the example folder.

Note that the example also relies on code in the /MODULE.bazel file in the root of this repo.

Troubleshooting and common challenges

For troubleshooting and common challenges, see docs/troubleshooting.md.