aspect-build / rules_jest

Bazel rules to run tests using https://jestjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

From the release you wish to use: https://github.com/aspect-build/rules_jest/releases copy the WORKSPACE snippet into your WORKSPACE file.

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 /WORKSPACE file in the root of this repo.

Troubleshooting and common challenges

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

About

Bazel rules to run tests using https://jestjs.io

License:Apache License 2.0


Languages

Language:Starlark 64.9%Language:JavaScript 31.6%Language:Shell 3.5%