library · inferred from evidence
ysugimoto/jest-preset-fastly-js-compute
A community Jest preset that maps fastly: namespaced imports to local mocks for testing.
- Jest fails with Cannot find module 'fastly:secret-store' for Fastly Compute@Edge app
Use the jest preset ysugimoto/jest-preset-fastly-js-compute in your jest config: it maps fastly: namespaced imports to local mocks so tests can run outside the Compute@Edge runtime. This is the integration Fastly's own maintainer recommends