Skip to content

Commit 5a76ac9

Browse files
authored
fix isTurbopack check in test cases (#65446)
### What? Fix the `isTurbopack` flag in production test cases
1 parent 31567dd commit 5a76ac9

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

test/lib/e2e-utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,7 @@ export function nextTestSetup(
280280
},
281281
get isTurbopack(): boolean {
282282
return Boolean(
283-
isNextDev &&
284-
!process.env.TEST_WASM &&
285-
(options.turbo ?? shouldRunTurboDevTest())
283+
!process.env.TEST_WASM && (options.turbo ?? shouldRunTurboDevTest())
286284
)
287285
},
288286

test/turbopack-build-tests-manifest.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,6 @@
10011001
"app dir - basic server components should serve client component should serve client-side",
10021002
"app dir - basic server components should serve client component should serve server-side",
10031003
"app dir - basic server components should serve shared component",
1004-
"app dir - basic should encode chunk path correctly",
10051004
"app dir - basic should ensure the </body></html> suffix is at the end of the stream",
10061005
"app dir - basic should generate build traces correctly",
10071006
"app dir - basic should handle hash in initial url",
@@ -1030,7 +1029,6 @@
10301029
"app dir - basic should serve from public",
10311030
"app dir - basic should serve nested parent",
10321031
"app dir - basic should serve page as a segment name correctly",
1033-
"app dir - basic should serve polyfills for browsers that do not support modules",
10341032
"app dir - basic should successfully detect app route during prefetch",
10351033
"app dir - basic should use new root layout when provided",
10361034
"app dir - basic should use text/x-component for flight",
@@ -1039,7 +1037,10 @@
10391037
"app dir - basic template component should render the template that holds state in a client component and reset on navigation",
10401038
"app dir - basic template component should render the template that is a server component and rerender on navigation"
10411039
],
1042-
"failed": [],
1040+
"failed": [
1041+
"app dir - basic should encode chunk path correctly",
1042+
"app dir - basic should serve polyfills for browsers that do not support modules"
1043+
],
10431044
"pending": [
10441045
"app dir - basic <Link /> should soft replace",
10451046
"app dir - basic known bugs should support React fetch instrumentation client component",

0 commit comments

Comments
 (0)