In my setup, I had create-react-app ( which internally uses and no package.json entry for jest at all. So I found a workaround to the issue, as well as a potential explanation. (path_to_project/node_modules/jest-playwright-preset/index.js:1:18) Environment (path_to_project/node_modules/jest-playwright-preset/lib/PlaywrightEnvironment.js:245:48) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Module._extensions.js (internal/modules/cjs/loader.js:1114:10) at Object.newLoader (path_to_project/node_modules/pirates/lib/index.js:141:7) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:12) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:93:18) at Object. TypeError: Jest: Got error running globalSetup - reason: Class extends value undefined is not a constructor or null at getPlaywrightEnv (path_to_project/node_modules/jest-playwright-preset/lib/PlaywrightEnvironment.js:59:5) at Object. Try to execute the following command on a new terminal: npm run test-storybook -eject Expected behaviorĬan run tests on storybook. Have a working storybook instance with the storybook. Maybe the Verison can be downgraded to 27.5.1? Steps to reproduce the behavior It seems like the problem is with the test-runner requiring "jest": "^28.0.0". When I try to run the test-runner I get the error mentioned in this bug report: storybookjs/storybook#18120
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |