Skip to content

[test runner] Error: Error while reading global-setup.ts: Cannot find module 'global-setup.ts' #7004

Closed

Description

This does not work:

const config: PlaywrightTestConfig = {
  globalSetup: 'global-setup.ts',
};

This works

const config: PlaywrightTestConfig = {
  globalSetup: path.join(__dirname, 'global-setup.ts'),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions