Skip to content

aspect-build/rules_jest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3c7853c · Dec 30, 2024
Dec 30, 2024
Jan 27, 2024
Dec 30, 2024
Dec 30, 2024
Dec 30, 2024
Aug 15, 2024
Apr 28, 2024
Sep 24, 2024
May 13, 2024
Apr 5, 2023
Dec 30, 2024
Jun 7, 2024
May 11, 2024
Mar 26, 2024
May 13, 2024
Nov 26, 2022
Apr 28, 2024
Nov 3, 2022
Dec 30, 2024
Dec 30, 2024
May 20, 2022
Dec 30, 2024
Apr 8, 2024
Dec 30, 2024
Dec 30, 2024
Apr 8, 2023
May 11, 2023
Apr 5, 2023
Feb 18, 2023
Jan 31, 2023

Repository files navigation

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.