docs: fix the global setup example (#7005)

This commit is contained in:
Pavel Feldman 2021-06-09 17:39:49 -07:00 committed by GitHub
parent e625e17dc3
commit e0150338ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,7 @@ Now add `globalSetup` option to the configuration file.
```js js-flavor=js
// playwright.config.js
module.export = {
globalSetup: 'global-setup.js',
globalSetup: require.resolve('./global-setup'),
};
```
@ -257,7 +257,7 @@ module.export = {
import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
globalSetup: 'global-setup.ts',
globalSetup: require.resolve('./global-setup'),
};
export default config;
```