Skip to content

Commit

Permalink
fix isTurbopack check in test cases (#65446)
Browse files Browse the repository at this point in the history
### What?

Fix the `isTurbopack` flag in production test cases
  • Loading branch information
sokra committed May 7, 2024
1 parent 31567dd commit 5a76ac9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions test/lib/e2e-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,7 @@ export function nextTestSetup(
},
get isTurbopack(): boolean {
return Boolean(
isNextDev &&
!process.env.TEST_WASM &&
(options.turbo ?? shouldRunTurboDevTest())
!process.env.TEST_WASM && (options.turbo ?? shouldRunTurboDevTest())
)
},

Expand Down
7 changes: 4 additions & 3 deletions test/turbopack-build-tests-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,6 @@
"app dir - basic server components should serve client component should serve client-side",
"app dir - basic server components should serve client component should serve server-side",
"app dir - basic server components should serve shared component",
"app dir - basic should encode chunk path correctly",
"app dir - basic should ensure the </body></html> suffix is at the end of the stream",
"app dir - basic should generate build traces correctly",
"app dir - basic should handle hash in initial url",
Expand Down Expand Up @@ -1030,7 +1029,6 @@
"app dir - basic should serve from public",
"app dir - basic should serve nested parent",
"app dir - basic should serve page as a segment name correctly",
"app dir - basic should serve polyfills for browsers that do not support modules",
"app dir - basic should successfully detect app route during prefetch",
"app dir - basic should use new root layout when provided",
"app dir - basic should use text/x-component for flight",
Expand All @@ -1039,7 +1037,10 @@
"app dir - basic template component should render the template that holds state in a client component and reset on navigation",
"app dir - basic template component should render the template that is a server component and rerender on navigation"
],
"failed": [],
"failed": [
"app dir - basic should encode chunk path correctly",
"app dir - basic should serve polyfills for browsers that do not support modules"
],
"pending": [
"app dir - basic <Link /> should soft replace",
"app dir - basic known bugs should support React fetch instrumentation client component",
Expand Down

0 comments on commit 5a76ac9

Please sign in to comment.