Comments (5)
Should be fixed in #799 and a bugfix release gets released shortly.
from jest-playwright.
It seems like the peerDependencies range should be locked down to < 28 for now until an update is made to support 28.
Lines 55 to 58 in c536b17
from jest-playwright.
We're experiencing the same issue:
TypeError: Jest: Got error running globalSetup - /tmp/storybook-e2e-testing/angular_modern_inline_rendering/node_modules/@storybook/test-runner/playwright/global-setup.js,
reason: Class extends value #<Object> is not a constructor or null
at Object.getPlaywrightEnv (/tmp/storybook-e2e-testing/angular_modern_inline_rendering/node_modules/jest-playwright-preset/lib/PlaywrightEnvironment.js:59:5)
at Object.<anonymous> (/tmp/storybook-e2e-testing/angular_modern_inline_rendering/node_modules/jest-playwright-preset/lib/PlaywrightEnvironment.js:242:27)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Object.newLoader (/tmp/storybook-e2e-testing/angular_modern_inline_rendering/node_modules/pirates/lib/index.js:141:7)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/tmp/storybook-e2e-testing/angular_modern_inline_rendering/node_modules/jest-playwright-preset/index.js:1:18)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Object.newLoader (/tmp/storybook-e2e-testing/angular_modern_inline_rendering/node_modules/pirates/lib/index.js:141:7)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Module.require (internal/modules/cjs/loader.js:957:19)
I wonder if this is related to the release of Jest 28?
from jest-playwright.
Hi @yannbf, thanks for your reply! I am at least temporarily back in business by specifying v27 for jest
, jest-runner
, and jest-environment-node
.
"jest": "^27.5.1",
"jest-runner": "^27.5.1",
"jest-environment-node": "27.5.1"
from jest-playwright.
@mmarkelov @mxschmitt it seems that the jest-playwright runner is broken right now due to Jest 28 being released. Do either of you have a little time to look into this? This package is used by @storybook/test-runner, which cannot move over to the playwright runner directly. Any help or guidance would be much appreciated!
from jest-playwright.
Related Issues (20)
- [Question] Access to the displayName: 'edge' from the test file HOT 1
- "useDefaultBrowserType" property leads to "no tests were found"
- Provides the method for getting the `baseURL` HOT 1
- Support playwright v1.15.0 HOT 1
- Add strictness option to config HOT 1
- jestPlaywright is not defined HOT 3
- Unable to switch to inner frame in playwright HOT 1
- Question: history.pushState instead of full page load? HOT 2
- RevoGrid Problem HOT 1
- Got the error >>TypeError: this[(intermediate value)(intermediate value)(intermediate value)] is not a function HOT 3
- Support Jest 28 HOT 1
- how to specify record starting point HOT 2
- Test suites fail to lauch after upgrading playwright to 1.23.0 version HOT 4
- ReferenceError: page is not defined after upgrading to version 2.0.0 and jest 28.1.3 HOT 1
- TypeScript Build Failure: global.d.ts(233,5): error TS2709: Cannot use namespace 'JestConfig' as a type. HOT 3
- Support Jest 29 HOT 2
- [Question/Help] Record video for firefox
- Support Playwright Android Integration
- Support disabling animations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jest-playwright.