This repository was archived by the owner on Sep 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
Tests don't run #477
Copy link
Copy link
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
Describe the bug
Tests get discovered but just not running
To Reproduce
It works initially and after some time it stop working.
Expected behavior
Tests should run.
Desktop (please complete the following information):
- OS: [macOS Catalina]
- Playwright version [1.6.2]
- jest-playwright version [1.4.1]
Jest configuration (jest.e2e.config.js
):
module.exports = {
verbose: true,
collectCoverage: false,
preset: 'jest-playwright-preset',
testMatch: ['<rootDir>/src/**/*.test.e2e.js'],
}
jest-playwright.config.js
:
module.exports = {
collectCoverage: false,
browsers: ['chromium', 'webkit'],
launchOptions: {
headless: !process.env.DEBUG,
},
useDefaultBrowserType: true,
}
Simple test file playwright.test.e2e.js
test('test', async () => {
await page.goto('http://localhost:3000/')
await jestPlaywright.debug()
})
Additional context
I tried clear jest cache and run with --no-cache
, tried remove yarn.lock
and node_modules
.
After it stopped can't make it work again.
Trying to run like this
DEBUG=true npx jest -c jest.e2e.config.js
or npx jest -c jest.e2e.config.js
Main jest config
module.exports = {
verbose: true,
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
coverageReporters: ['text', 'html'],
coverageDirectory: './coverage/',
coveragePathIgnorePatterns: [
'spec.js',
'polyfills',
'service-worker',
'coverage',
'cypress',
'cypress-coverage',
],
testMatch: ['<rootDir>/src/**/*.test.js'],
transform: { '\\.js': ['babel-jest'] },
}
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation