Skip to content

Commit 2a10af5

Browse files
committed
test: make sure all ways to build turbopack fixture would set --turbopack cli toggle
1 parent ab831a1 commit 2a10af5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/fixtures/hello-world-turbopack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"postinstall": "next build --turbopack",
77
"dev": "next dev --turbopack",
8-
"build": "next build"
8+
"build": "next build --turbopack"
99
},
1010
"dependencies": {
1111
"next": "latest",

tests/utils/create-e2e-fixture.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,10 @@ async function cleanup(dest: string, deployId?: string): Promise<void> {
316316

317317
export const fixtureFactories = {
318318
simple: () => createE2EFixture('simple'),
319-
helloWorldTurbopack: () => createE2EFixture('hello-world-turbopack'),
319+
helloWorldTurbopack: () =>
320+
createE2EFixture('hello-world-turbopack', {
321+
buildCommand: 'next build --turbopack',
322+
}),
320323
outputExport: () => createE2EFixture('output-export'),
321324
ouputExportPublishOut: () =>
322325
createE2EFixture('output-export', {

0 commit comments

Comments
 (0)