@@ -47,7 +47,7 @@ Create `tests/auth.setup.ts` that will prepare authenticated browser state for a
4747
4848``` js title="tests/auth.setup.ts"
4949import { test as setup , expect } from ' @playwright/test' ;
50- import path from ' path' ;
50+ import * as path from ' path' ;
5151
5252const authFile = path .join (__dirname , ' ../playwright/.auth/user.json' );
5353
@@ -143,8 +143,8 @@ Create `playwright/fixtures.ts` file that will [override `storageState` fixture]
143143
144144``` js title="playwright/fixtures.ts"
145145import { test as baseTest , expect } from ' @playwright/test' ;
146- import fs from ' fs' ;
147- import path from ' path' ;
146+ import * as fs from ' fs' ;
147+ import * as path from ' path' ;
148148
149149export * from ' @playwright/test' ;
150150export const test = baseTest .extend < {}, { workerStorageState: string }> ({
@@ -348,8 +348,8 @@ Alternatively, in a [worker fixture](#moderate-one-account-per-parallel-worker):
348348
349349``` js title="playwright/fixtures.ts"
350350import { test as baseTest , request } from ' @playwright/test' ;
351- import fs from ' fs' ;
352- import path from ' path' ;
351+ import * as fs from ' fs' ;
352+ import * as path from ' path' ;
353353
354354export * from ' @playwright/test' ;
355355export const test = baseTest .extend < {}, { workerStorageState: string }> ({
0 commit comments