Skip to content

Commit 4c0edcd

Browse files
committed
test: clean up some more global state when running integration tests
1 parent 12380a4 commit 4c0edcd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/utils/fixture.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ export const createFixture = async (fixture: string, ctx: FixtureTestContext) =>
106106
delete globalThis[Symbol.for('next-patch')]
107107
}
108108

109+
// due to changes in https://github.com/vercel/next.js/pull/86591 , this global is specific to instance of application and we to clean it up
110+
// from any previous function invocations that might have run in the same process
111+
delete globalThis[Symbol.for('next.server.manifests')]
112+
109113
ctx.cwd = await mkdtemp(join(tmpdir(), 'opennextjs-netlify-'))
110114
vi.spyOn(process, 'cwd').mockReturnValue(ctx.cwd)
111115

0 commit comments

Comments
 (0)