Replies: 1 comment
-
hey @basicdays, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all,
I'm trying to start a new Node Express project and want to try to get it working with ESM. I've followed did all the ESM
jest.config.ts
settings that were recommended. The project can successfully be transpiled by TypeScript and can be ran. However, when I attempt to import from thehelmet
package, jest is failing with the following:From what I'm able to sleuth so far on why
helmet
is different, is that the package structure is as follows:With it's
package.json
import settings as:I've built a mini-app on a public repo here that recreates the issue: https://github.com/basicdays/jest-ts-node
Running
npm install && npm test
will reproduce the error.Beta Was this translation helpful? Give feedback.
All reactions