docs: fix example for globalSetup/globalTeardown (#23085)
Signed-off-by: Sam Adams <107990625+sam-super@users.noreply.github.com>
This commit is contained in:
parent
6173014a75
commit
c0bfbea395
|
|
@ -49,10 +49,8 @@ Similarly, use `globalTeardown` to run something once after all the tests. Alter
|
||||||
import { defineConfig } from '@playwright/test';
|
import { defineConfig } from '@playwright/test';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
use: {
|
globalSetup: require.resolve('./global-setup'),
|
||||||
globalSetup: require.resolve('./global-setup'),
|
globalTeardown: require.resolve('./global-teardown'),
|
||||||
globalTeardown: require.resolve('./global-teardown'),
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue