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
{{ message }}
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
Using a custom environment per the docs give: "TypeError: Cannot destructure property 'collectCoverage' of 'this._jestPlaywrightConfig' as it is undefined." #413
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: Ubuntu 18.04
Playwright version: 1.5.1
jest-playwright version: 1.3.1
Jest configuration (Either in the package.json > jest or in the jest.config.js):
module.exports={// Test sequencers cannot exist in projects, only in global configtestSequencer: './tests/e2e/util/jestSequencer.js',projects: [{displayName: 'E2E',rootDir: 'tests/e2e',testEnvironment: '<rootDir>/util/CustomEnvironment.js',testRunner: 'jest-circus/runner',runner: '<rootDir>/util/serialJestRunner.js',preset: 'jest-playwright-preset',globals: {TEST_URL: testUrl,},setupFilesAfterEnv: ['<rootDir>/jest.setup.js','expect-playwright'],globalSetup: '<rootDir>/util/globalSetup.js',globalTeardown: '<rootDir>/util/globalTeardown.js',},],};
Additional context
This is the custom environment: