Skip to content

Commit

Permalink
test(fallback-mode): write to fs on "beforeEach"
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Feb 7, 2023
1 parent 1575e99 commit c06a0f0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ function createFetchWithoutNetwork(page: Page) {
}
}

test.beforeAll(async ({ webpackServer }, testInfo) => {
test.beforeAll(async () => {
await fsMock.prepare()
})

testInfo.workerIndex

test.beforeEach(async ({ webpackServer }, testInfo) => {
const compilation = await webpackServer.compile([
require.resolve('./fallback-mode.mocks.ts'),
])
Expand Down

0 comments on commit c06a0f0

Please sign in to comment.