Skip to content

vfile/do-not-use-conditional-minpath after 0.5.3 -> 0.6.1 #88

Closed Answered by ChristianMurphy
linonetwo asked this question in Q&A
Discussion options

You must be logged in to vote

Adding on the stack trace includes jest.

jest-resolve@27.5.1/node_modules/jest-resolve/build/resolver.js:324:11

Jest is known to have problems with ES modules (ESM). They have experimental ESM support https://jestjs.io/docs/ecmascript-modules but it has been experimental for years and has known bugs.

Consider dropping Jest entirely if you can, there are alternatives like node:test and vitest which do fully support ESM.
Or you could wrap jest with another tool like vite https://hung.dev/posts/jest-vite

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ChristianMurphy
Comment options

Answer selected by linonetwo
@linonetwo
Comment options

Comment options

You must be logged in to vote
1 reply
@linonetwo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants