rules_jest
rules_jest copied to clipboard
[Bug]: jest bazel snapshot resolver not being configured
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
I encountered this, and in my case, it seemed to be due to jest config using projects
I tried adding snapshotResolver to each project's subconfig and it resolved this