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.

jest-playwright.config.js in project root not working #61

@thernstig

Description

@thernstig

The documentation states:

You can specify a jest-playwright.config.js at the root of the project

This is not true, as with the below configuration, where one use Jest projects, it does not find jest-playwright.config.js by default if it is placed in the project's root dir:

module.exports = {
  verbose: true,
  projects: [
    {
      displayName: 'UNIT:SERVER',
      testEnvironment: 'node',
      rootDir: 'server/',
    },
    {
      displayName: 'E2E',
      preset: 'jest-playwright-preset',
      rootDir: 'tests/',
      setupFilesAfterEnv: [
        '<rootDir>/jest.setup.js',
      ],
    },
  ],
};

This forces me to use JEST_PLAYWRIGHT_CONFIG, but it would be nice if this plugin actually looked at the Jest project root when finding the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions