docs: fix the global setup example (#7005)
This commit is contained in:
parent
e625e17dc3
commit
e0150338ac
|
|
@ -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;
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in a new issue