From 16b8df6925d9962b976048ebd52389ac413f157c Mon Sep 17 00:00:00 2001 From: evanbacon Date: Fri, 17 Nov 2023 14:56:14 -0600 Subject: [PATCH] drop v3 test --- .../loadStaticParamsAsync.test.node.ts | 70 ------------------- 1 file changed, 70 deletions(-) diff --git a/packages/expo-router/src/__tests__/loadStaticParamsAsync.test.node.ts b/packages/expo-router/src/__tests__/loadStaticParamsAsync.test.node.ts index 957e2d0f..e7a6327c 100644 --- a/packages/expo-router/src/__tests__/loadStaticParamsAsync.test.node.ts +++ b/packages/expo-router/src/__tests__/loadStaticParamsAsync.test.node.ts @@ -286,76 +286,6 @@ describe(loadStaticParamsAsync, () => { `); }); - it(`preserves API routes`, async () => { - const ctx = createMockContextModule({ - "./index.tsx": { - default() {}, - }, - "./foo+api.tsx": { - GET() {}, - }, - "./[post]+api.tsx": { - POST() {}, - }, - }); - - const route = getExactRoutes(ctx, { preserveApiRoutes: true })!; - - expect(dropFunctions(route)).toEqual({ - children: [ - { - children: [], - contextKey: "./index.tsx", - dynamic: null, - route: "index", - }, - { - children: [], - contextKey: "./foo+api.tsx", - dynamic: null, - route: "foo", - }, - { - children: [], - contextKey: "./[post]+api.tsx", - dynamic: [{ deep: false, name: "post" }], - route: "[post]", - }, - ], - contextKey: "./_layout.tsx", - dynamic: null, - generated: true, - route: "", - }); - - expect(dropFunctions(await loadStaticParamsAsync(route))).toEqual({ - children: [ - { - children: [], - contextKey: "./index.tsx", - dynamic: null, - route: "index", - }, - { - children: [], - contextKey: "./foo+api.tsx", - dynamic: null, - route: "foo", - }, - { - children: [], - contextKey: "./[post]+api.tsx", - dynamic: [{ deep: false, name: "post" }], - route: "[post]", - }, - ], - contextKey: "./_layout.tsx", - dynamic: null, - generated: true, - route: "", - }); - }); - it(`evaluates with nested deep dynamic segments`, async () => { const ctx = createMockContextModule({ "./post/[...post].tsx": {