Skip to content

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

@pavelfeldman

Description

@pavelfeldman

This does not work:

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

This works

const config: PlaywrightTestConfig = {
  globalSetup: path.join(__dirname, 'global-setup.ts'),
};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions