aspect-build / aspect-build/rules_jest
[Bug]: jest bazel snapshot resolver not being configured
- Dominant language
- Starlark
- Stars
- 24
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
### What happened?
A case where in a customer repo the bazel snapshot resolver is not being used at all.
Throwing an error from `bazel_snapshot_resolver.cjs` does not fail the build because it is never loaded.
While the tests seem to pass, writing snapshot files silently fails because the `bazel_snapshot_resolver.cjs` is not being invoked at all.
### Version
```
bazel_dep(name = "aspect_rules_jest", version = "0.22.0-rc0")
```
### How to reproduce
_No response_
### Any other information?
_No response_
Contributor guide
Research direction
Start by tracing the Jest and Bazel configuration for aspect_rules_jest 0.22.0-rc0 to determine whether bazel_snapshot_resolver.cjs is loaded. Reproduce the reported case where an error from that file does not fail the build, then verify that snapshot writing invokes the resolver.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100