Description
Describe the bug
when running test I get below error
npm run test-storybook
test-storybook
TypeError: Jest: Got error running globalSetup - C:\Users\kkumar\code\web\node_modules@storybook\test-runner\playwright\global-setup.js, reason: Class extends value undefined is not a constructor or null
at getPlaywrightEnv (C:\Users\kkumar\code\web\node_modules\jest-playwright-preset\lib\PlaywrightEnvironment.js:59:5)
at Object. (C:\Users\kkumar\code\web\node_modules\jest-playwright-preset\lib\PlaywrightEnvironment.js:245:48)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Object.newLoader (C:\Users\kkumar\code\web\node_modules\pirates\lib\index.js:141:7)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (C:\Users\kkumar\code\web\node_modules\jest-playwright-preset\index.js:1:18)
Steps to reproduce the behavior
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
Should run test
Screenshots and/or logs
If applicable, add screenshots and/or logs to help explain your problem.
Environment
- OS: Windows 10 Enterprise
- Node.js version: v18.16.0
- NPM version: 9.5.1
"@storybook/addon-actions": "^7.0.10",
"@storybook/addon-essentials": "^7.0.10",
"@storybook/addon-interactions": "^7.0.10",
"@storybook/addon-links": "^7.0.10",
"@storybook/cli": "^7.0.10",
"@storybook/react": "^7.0.10",
"@storybook/react-vite": "^7.0.10",
"@storybook/test-runner": "^0.10.0",
"@storybook/testing-library": "^0.1.0",
Additional context
Add any other context about the problem here.