Skip to content

Commit 7b91eb9

Browse files
committed
test: unset more things related to next's fetch patching
1 parent 885be4d commit 7b91eb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/utils/fixture.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export const createFixture = async (fixture: string, ctx: FixtureTestContext) =>
8989
) {
9090
// @ts-ignore fetch doesn't have _nextOriginalFetch property in types
9191
globalThis.fetch = globalThis._nextOriginalFetch || globalThis.fetch._nextOriginalFetch
92+
delete globalThis[Symbol.for('next-patch')]
9293
}
9394

9495
ctx.cwd = await mkdtemp(join(tmpdir(), 'netlify-next-runtime-'))

0 commit comments

Comments
 (0)