You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './presets' is not defined by "exports" in /Users/rich/dev/nebula/cloud/node_modules/ts-jest/package.json
at throwExportsNotFound (internal/modules/esm/resolve.js:285:9)
at packageExportsResolve (internal/modules/esm/resolve.js:491:3)
at resolveExports (internal/modules/cjs/loader.js:444:36)
at Function.Module._findPath (internal/modules/cjs/loader.js:484:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:818:27)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Module.require (internal/modules/cjs/loader.js:903:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/Users/rich/dev/nebula/cloud/jest.config.js:1:31)
at Module._compile (internal/modules/cjs/loader.js:1015:30)
when I try to run my jest tests.
Last working version
26.1.1
Stopped working in version:
27.0.0
To Reproduce
Steps to reproduce the behaviour:
setup a jest.config.js with the following
And it all works, so Idk if this was intended, if this is a breaking change, if the docs need to be changed or if I completely misunderstood something and got it working in some un-intended manner.
Apologies for the long winded post
The text was updated successfully, but these errors were encountered:
💥 Regression Report
The error
when I try to run my jest tests.
Last working version
26.1.1
Stopped working in version:
27.0.0
To Reproduce
Steps to reproduce the behaviour:
setup a jest.config.js with the following
Expected behaviour
my tests to run :p
Link to repo (highly encouraged)
Debug log:
envinfo
Idk random notes.
So I didn't how to describe this issue so I just filed under regression, apologies if that's wrong.
So after some scrounging around, I believe the it maybe related to PR #2477
Particularly the amendments to the
package.json#exports
Currently in my
jest.config.js
I importts-jest
viaas documented at: https://kulshekhar.github.io/ts-jest/docs/getting-started/presets/#advanced
I can see that essentially
./presets
has been renamed to./jest-presets
So I changed my import statements:
And it all works, so Idk if this was intended, if this is a breaking change, if the docs need to be changed or if I completely misunderstood something and got it working in some un-intended manner.
Apologies for the long winded post
The text was updated successfully, but these errors were encountered: