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
👋 I am trying to add test-runner to an existing project that already has Storybook and Jest running, when following the Getting started instructions, I end up with the following error for each of my existing stories:
FAIL browser: chromium spec/storybook/pages/request/index.stories.tsx
● Test suite failed to run
TypeError: Jest: a transform must export a `process` function.
at ScriptTransformer._getTransformer (node_modules/@jest/transform/build/ScriptTransformer.js:360:13)
at ScriptTransformer.transformSource (node_modules/@jest/transform/build/ScriptTransformer.js:427:28)
at ScriptTransformer._transformAndBuildScript (node_modules/@jest/transform/build/ScriptTransformer.js:569:40)
at ScriptTransformer.transform (node_modules/@jest/transform/build/ScriptTransformer.js:607:25)
at interopRequireDefault (node_modules/@storybook/core-common/dist/cjs/utils/interpret-require.js:64:16)
Steps to reproduce
run yarn storybook in terminal, wait for it to finish
run yarn test-storybook in another terminal
Current packages
My major versions of ts-jest and jest match.
I am using Webpack 4
Any thoughts on this?
The text was updated successfully, but these errors were encountered:
👋 I am trying to add
test-runner
to an existing project that already has Storybook and Jest running, when following the Getting started instructions, I end up with the following error for each of my existing stories:Steps to reproduce
yarn storybook
in terminal, wait for it to finishyarn test-storybook
in another terminalCurrent packages
ts-jest
andjest
match.Any thoughts on this?
The text was updated successfully, but these errors were encountered: