-
Notifications
You must be signed in to change notification settings - Fork 785
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Stencil v4.18.1 breaks support for Jest v26 #5766
Comments
Hey @deleonio thanks for reporting this, I wasn't able to reproduce that error locally my testing. Would you possibly be able to put together a minimal reproduction? Without that we have a hard time debugging errors. |
Thanks for the issue! This issue has been labeled as Please reproduce this issue in an Stencil starter component library and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed. If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue. For a guide on how to create a good reproduction, see our Contributing Guide. |
Here I prepare a reproduction sample: https://github.com/deleonio/kolibri-library/tree/reproduction-5766 pnpm i
pnpm test 4.18.0 works The following files contains > grep -rl "node:path"
./test/wdio/invisible-prehydration/invisible-prehydration.test.tsx
./test/wdio/prerender-test/cmp.test.tsx
./test/wdio/wdio.conf.ts
./test/wdio/util.ts
./scripts/esbuild/dev-server.ts
./scripts/updateSelectorEngine.ts Maybe
|
Thanks @deleonio for providing more information on this, I will take a look! |
Hey @deleonio 👋 I've identified that our recent update of glob has caused this issue, in particular the part where it imports node internals: (left new vs right older version of glob bundled in Stencil) It seems that this conflicts with running tests in Jest v26. Is there any reason you are on this particular Jest version and are unable to update? Updating Jest to the latest version has fixed the problem for me using your reproduction case. |
v4.18.1
@deleonio I have a dev build for you with a fix. Yoi can install it via |
We always try to switch to the latest versions. With Jest, we have never managed to upgrade from 26. We will try again. |
Hey, first I tried to upgrade jest again (public-ui/kolibri#6460). Next I will check you provided npm package |
👍 our pipeline passed! public-ui/kolibri#6460 THX! |
@deleonio thanks for verifying. I will go ahead and close the issue. The fix will be released next week. |
Prerequisites
Stencil Version
4.18.1
Current Behavior
We update
stencil
in this PR: https://github.com/public-ui/kolibri/pull/6418/files#diff-2c76dc06185f93bec73660e15338433b95eac6707317564c0f778f5b9abe446cFAIL src/components/quote/test/snapshot.spec.tsx ● Test suite failed to run ENOENT: no such file or directory, open 'node:path' at Runtime.readFile (../../node_modules/.pnpm/jest-runtime@26.6.3_ts-node@10.9.2/node_modules/jest-runtime/build/index.js:1987:21) at Object.760 (../../node_modules/.pnpm/@stencil+core@4.18.1/node_modules/@stencil/core/sys/node/glob.js:1:2995) at s (../../node_modules/.pnpm/@stencil+core@4.18.1/node_modules/@stencil/core/sys/node/glob.js:1:85614) at Object.576 (../../node_modules/.pnpm/@stencil+core@4.18.1/node_modules/@stencil/core/sys/node/glob.js:1:67906)
Expected Behavior
Have no dependency issues.
System Info
No response
Steps to Reproduce
Sorry. I do not know, how you can reproduce this exception.
Code Reproduction URL
https://github.com/public-ui/kolibri/pull/6418/files#diff-2c76dc06185f93bec73660e15338433b95eac6707317564c0f778f5b9abe446c
Additional Information
Thank you!
The text was updated successfully, but these errors were encountered: