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.

Let jest-playwright.config.js export an async function #638

@thernstig

Description

@thernstig

Is your feature request related to a problem? Please describe.
I want to use async/await in my jest-playwright.config.js as it is nicer and easier to read code that way.

Describe the solution you'd like
Similar to how Jest's globalSetup can except the export of an async function, so should the above config like:

module.exports = async () => {
  // Do some cool async stuff here
  if (foo) {
    await exec('foominator', {
      cwd: path.join(repoRoot, 'clientclient'),
    });
  }
};

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