mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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
|
```js js-flavor=js
|
||||||
// playwright.config.js
|
// playwright.config.js
|
||||||
module.export = {
|
module.export = {
|
||||||
globalSetup: 'global-setup.js',
|
globalSetup: require.resolve('./global-setup'),
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -257,7 +257,7 @@ module.export = {
|
|||||||
import { PlaywrightTestConfig } from '@playwright/test';
|
import { PlaywrightTestConfig } from '@playwright/test';
|
||||||
|
|
||||||
const config: PlaywrightTestConfig = {
|
const config: PlaywrightTestConfig = {
|
||||||
globalSetup: 'global-setup.ts',
|
globalSetup: require.resolve('./global-setup'),
|
||||||
};
|
};
|
||||||
export default config;
|
export default config;
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user