https://github.com/aspect-build/rules_jest
Bazel rules to run tests using https://jestjs.io
https://github.com/aspect-build/rules_jest
bazel bazel-rules
Last synced: 11 months ago
JSON representation
Bazel rules to run tests using https://jestjs.io
- Host: GitHub
- URL: https://github.com/aspect-build/rules_jest
- Owner: aspect-build
- License: apache-2.0
- Created: 2022-02-23T19:26:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-20T18:59:01.000Z (about 1 year ago)
- Last Synced: 2025-08-02T07:14:56.047Z (11 months ago)
- Topics: bazel, bazel-rules
- Language: Starlark
- Homepage:
- Size: 814 KB
- Stars: 24
- Watchers: 5
- Forks: 20
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/aspect-build/rules_js/discussions/1000).
rules_jest is just a part of what Aspect provides:
- _Need help?_ This ruleset has support provided by https://aspect.build/services.
- See our other Bazel rules, especially those built for rules_js, such as rules_ts for TypeScript: https://github.com/aspect-build
## Installation
Follow instructions from the release you wish to use:
## Usage
Run all Jest tests in the workspace: `bazel test --test_lang_filters=jest //...`
See [jest_test](docs/jest_test.md) API documentation and the example usages in the [example](https://github.com/aspect-build/rules_jest/tree/main/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](docs/troubleshooting.md).