Can't seem to use ts-jest
preset for ESM dependencies
#4290
Unanswered
angrybacon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It looked like people at #398 had the exact same issue but none of the suggestions worked for me. I have a working TypeScript project that has tests written in TypeScript also.
Today I've tried adding a new feature that depends on
mdast-util-toc
(a ESM-only dependency) and I can't seem to be able to run those.js
files within my test suite. The legacy presets mentioned in the documentation and here don't seem to help either. I must admit that I'm a bit confused about what exactly makes it so complicated to configure.You can reproduce my issue with this repository: https://github.com/angrybacon/kiwi using the branch
:feat--gettoc
.pnpm install pnpm run test lib/getToc.test.ts
Beta Was this translation helpful? Give feedback.
All reactions