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
seriously? a year passed and this is still not released. please release a new version
Reacted by Jochen Hörmann, Filip Dupanović, niffler, Maxime Liron, José-Antonio Rubio, Tony Ko, Sam Rubin, Anton Stoychev, Elyahou Ittah, mgltopdk and 2 more
In case anyone ends up here from Google, have been debugging various jest issues, and was hitting:
Error: Jest: Failed to parse the TypeScript config file /var/home/[…]/storybook/jest.config.ts
TypeError: value.replace is not a function
at readConfigFileAndSetRootDir (/var/home/[…]/storybook/node_modules/jest-config/build/index.js:2269:13)
at async readInitialOptions (/var/home/[…]/storybook/node_modules/jest-config/build/index.js:1147:13)
at async readConfig (/var/home/[…]/storybook/node_modules/jest-config/build/index.js:918:7)
at async readConfigs (/var/home/[…]/storybook/node_modules/jest-config/build/index.js:1168:26)
at async runCLI (/var/home/[…]/storybook/node_modules/@jest/core/build/index.js:1393:7)
at async Object.run (/var/home/[…]/storybook/node_modules/jest-cli/build/index.js:656:9)
Error: Jest: Failed to parse the TypeScript config file /var/home/[…]/storybook/jest.config.ts
TypeError: state.conditions.includes is not a function
at readConfigFileAndSetRootDir (/var/home/[…]/storybook/node_modules/jest-config/build/index.js:2269:13)
at async readInitialOptions (/var/home/[…]/storybook/node_modules/jest-config/build/index.js:1147:13)
at async readConfig (/var/home/[…]/storybook/node_modules/jest-config/build/index.js:918:7)
at async readConfigs (/var/home/[…]/storybook/node_modules/jest-config/build/index.js:1168:26)
at async runCLI (/var/home/[…]/storybook/node_modules/@jest/core/build/index.js:1393:7)
at async Object.run (/var/home/[…]/storybook/node_modules/jest-cli/build/index.js:656:9)
that was fixed in the more-recent stable version 10.9.2 so the beta version is older and does not include the fix 😖
there is a patch available but a new beta release is definitely in order. #2076 (comment)
Activity
evantill commentedon Apr 9, 2023
is it possible to add some warning that current released version does not support tsconfig extensions ?
Kurt-von-Laven commentedon Apr 22, 2023
Thank you for addressing this issue! Would it be possible to release this fix when time allows?
simenandre commentedon Apr 25, 2023
Let me know if I can help with anything in regard to releasing!
simenandre commentedon Apr 27, 2023
For anyone finding this issue and wanting a fix while we wait, plan, work or try to find time to work on a release.
It is possible to install
ts-nodefrom git, as @cspotcode noted in #1958.There's a snippet and instructions here: #1977
BryceBarbara commentedon May 4, 2023
@simenandre Were you able to get that to work? It doesn't work for me because the repo is downloaded and there's no dist files.
simenandre commentedon May 5, 2023
There are others having some issues with yarn, etc. Maybe you could repost your setup in the issue I referenced?
alexeyr-ci commentedon Feb 17, 2024
There has been a new release 10.9.2, but from v10.9.1...v10.9.2 it looks like this change isn't included?
tylim88 commentedon Mar 27, 2024
still same issue with v10.9,2
enisdenjo commentedon Mar 28, 2024
seriously? a year passed and this is still not released. please release a new version
yogrr commentedon Jul 8, 2024
can be solved now by using
worked for me with this version
don't forget to rm
node_modulesor rm oldts-nodebeforerrooddooxx commentedon Feb 19, 2025
when is this going be released? is there something can do to help? thanks
heyakyra commentedon Aug 23, 2025
In case anyone ends up here from Google, have been debugging various
jestissues, and was hitting:and led here by jestjs/jest#14096
but the above solution
@yogrr on on Jul 8, 2024
just leads to another problem:
that was fixed in the more-recent stable version
10.9.2so the beta version is older and does not include the fix 😖there is a patch available but a new beta release is definitely in order. #2076 (comment)
test: replace `ts-node` with `esbuild` as jest config loader