Closed voravuthbo closed 2 years ago
After updated jest version to 28.0.2 the error has changed to
TypeError: Cannot read properties of undefined (reading 'serial')
at PlaywrightRunner.runTests (/Users/voravuth.b/PycharmProjects/qa-playwright-nest/node_modules/jest-playwright-preset/lib/PlaywrightRunner.js:127:28)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async TestScheduler.scheduleTests (/Users/voravuth.b/PycharmProjects/qa-playwright-nest/node_modules/@jest/core/build/TestScheduler.js:317:13)
at async runJest (/Users/voravuth.b/PycharmProjects/qa-playwright-nest/node_modules/@jest/core/build/runJest.js:407:19)
at async _run10000 (/Users/voravuth.b/PycharmProjects/qa-playwright-nest/node_modules/@jest/core/build/cli/index.js:338:7)
at async runCLI (/Users/voravuth.b/PycharmProjects/qa-playwright-nest/node_modules/@jest/core/build/cli/index.js:190:3)
at async Object.run (/Users/voravuth.b/PycharmProjects/qa-playwright-nest/node_modules/jest-cli/build/cli/index.js:155:37)
It seems serial is unable to use in new jest / playwright version ?
Explicitely setting "jest": "^27.5.1", "jest-runner": "^27.5.1", "jest-environment-node": "27.5.1"
in your package.json
should solve this issue for now. At least until this PR is merged https://github.com/playwright-community/jest-playwright/pull/794.
I got the hint from another issue: https://github.com/playwright-community/jest-playwright/issues/793#issuecomment-1109812771
@Kessir It back to work now. Thank you, you made my day.
Describe the bug Found the error
TypeError: this[(intermediate value)(intermediate value)(intermediate value)] is not a function
after executed the testjest -c jest.e2e.config.js --runInBand --json --outputFile=testresults/report.json "testcases/test102.test.js"
Not sure what happened, the test was working fine 3 days ago but when executed it again after npm update the error occurred even I'm trying to downgrade all versions libraries related but i had no luck.
Screenshots
Desktop (please complete the following information):