Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pavelfeldman opened this issue Jun 10, 2021 · 0 comments · Fixed by #7061
Assignees
Labels
feature-test-runner Playwright test specific issues P1-resolve-asap

Comments

@pavelfeldman
Copy link
Member

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
Labels
feature-test-runner Playwright test specific issues P1-resolve-asap
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants