rules_jest
rules_jest copied to clipboard
Bazel rules to run tests using https://jestjs.io
--- ### Type of change - New feature or functionality (change which adds functionality) **For changes visible to end-users** - Breaking change (this change will force users to change their...
### What happened? I've been trying to get some simple unit tests working with `rules_jest`: it's been fine on Linux and OSX, but the rules fail on Windows: I just...
### What happened? We currently run bazel coverage on all our tests. The input to our tests are `cjs` files that come from `ts`. These files are generated with `rules_swc`...
### What is the current behavior? Jest provides a config option [cacheDirectory](https://jestjs.io/docs/configuration#cachedirectory-string) which specifies where intermediate file system outputs are written such as transformations or haste map. If left unspecified,...
### What is the current behavior? Only supports [these](https://github.com/aspect-build/rules_jest/blob/main/jest/private/jest_test.bzl#L9) extensions ### Describe the feature We have a `jest.config.ts` we would like to use with rules_jest. This is currently not supported...
### What happened? The [doc](https://github.com/aspect-build/rules_jest/blob/v0.19.6/docs/jest_test.md) says > snapshots: If True, a {name}_update_snapshots binary target is generated However, from the source code, `{name}_update_snapshots` will be generated even if `snapshots` is False...
### What happened? `bazel coverage //example/sharding:test` produce multiple coverate.dat files ### Version Development (host) and target OS/architectures: macOS latest Output of `bazel --version`: ``` rules_jest % bazel --version aspect 5.7.2...
See https://github.com/aspect-build/rules_jest/pull/197 for context
### What is the current behavior? Not supported ### Describe the feature When [--test_filter](https://bazel.build/docs/user-manual#test-filter) is set, Bazel will encode its value in the `TESTBRIDGE_TEST_ONLY` environment variable (see [Test Encyclopedia](https://bazel.build/reference/test-encyclopedia#initial-conditions)). rules_jest...
https://github.com/aspect-build/rules_jest/blob/7d4a398c6df5d53a4dc3c91cd0fdea0d3179e48b/jest/private/jest_config_template.mjs#L43-L54 This logic checks if the reporters needed are in the reporter array already, and if not adds it. However, you can have a reporter in the reporters array that...