Skip to content
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.

Tests don't run #477

@asmyshlyaev177

Description

@asmyshlyaev177

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.

Screenshots
Screen Shot 2563-11-30 at 14 27 50
Screen Shot 2563-11-30 at 14 28 06

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

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions