rules_jest icon indicating copy to clipboard operation
rules_jest copied to clipboard

[Bug]: jest bazel snapshot resolver not being configured

Open jbedard opened this issue 1 year ago • 1 comments

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

jbedard avatar Aug 22 '24 04:08 jbedard

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

tbarrella avatar Apr 14 '25 23:04 tbarrella