S

rules_jest

Created Feb 23, 2022 by aspect-build

Language:

Starlark

Stars:

24

Forks:

27

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.

rules_jest is just a part of what Aspect provides:

Installation

Follow instructions from the release you wish to use:

Usage

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

Filter tests by file path: bazel test --test_filter="user" //my:test (uses Jest's testRegex)

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.

Last updated: Jan 19, 2026

More MCP servers built with Starlark

rules_ts

Bazel rules for the `tsc` compiler from http://typescriptlang.org

By aspect-build 131
rules_swc

Bazel rules for the swc toolchain https://swc.rs/

By aspect-build 48
rules_esbuild

Bazel rules for https://esbuild.github.io/ JS bundler

By aspect-build 33