From 8e3e5a85e6274173fa131092edab3fbfbbcca0ac Mon Sep 17 00:00:00 2001 From: Hendrik Liebau Date: Wed, 9 Oct 2024 14:53:00 +0200 Subject: [PATCH] Skip `Math.random` test with route handler and `'use cache'` Using `'use cache'` in route handlers is not yet fully supported, and fails in isolation, e.g. in a deployment test, because it implicitly relies on the fact that a page must have been compiled before the route. Otherwise rendering the route errors with "Missing manifest for Server Actions.". --- .../e2e/app-dir/node-extensions/node-extensions.random.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/app-dir/node-extensions/node-extensions.random.test.ts b/test/e2e/app-dir/node-extensions/node-extensions.random.test.ts index 81015e745db95..c2b9d2fbf203b 100644 --- a/test/e2e/app-dir/node-extensions/node-extensions.random.test.ts +++ b/test/e2e/app-dir/node-extensions/node-extensions.random.test.ts @@ -5,6 +5,7 @@ describe('Node Extensions', () => { describe('Dynamic IO', () => { const { next, skipped } = nextTestSetup({ files: __dirname + '/fixtures/random/dynamic-io', + skipDeployment: true, }) if (skipped) { @@ -64,7 +65,7 @@ describe('Node Extensions', () => { expect($('li').length).toBe(2) }) - it('should not error when accessing routes that use Math.random() in App Router', async () => { + it.skip('should not error when accessing routes that use Math.random() in App Router', async () => { let res, body res = await next.fetch('/app/prerendered/uncached/api')