Skip to content

Commit 9a1f6f4

Browse files
committed
fixup! Turbopack: support config.turbopack and deprecate config.experimental.turbopack.
1 parent 46c2f24 commit 9a1f6f4

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

test/e2e/turbopack-turbo-config-compatibility/index.test.ts

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,23 @@ describe('turbopack-turbo-config-compatibility', () => {
1919
describe('only including deprecated experimental turbo config', () => {
2020
const { next, isTurbopack } = nextTestSetup({
2121
files: __dirname,
22+
overrideFiles: {
23+
'next.config.js': `module.exports = {
24+
experimental: {
25+
turbo: {
26+
resolveAlias: {
27+
foo: './turbo.js',
28+
},
29+
},
30+
},
31+
}`,
32+
},
2233
})
2334

2435
if (!isTurbopack) {
2536
return
2637
}
2738

28-
beforeAll(async () => {
29-
await next.patchFile(
30-
'next.config.js',
31-
`module.exports = {
32-
experimental: {
33-
turbo: {
34-
resolveAlias: {
35-
foo: './turbo.js',
36-
},
37-
},
38-
},
39-
}`
40-
)
41-
})
42-
4339
it('still uses the deprecated experimental turbo config', async () => {
4440
const $ = await next.render$('/')
4541
expect($('#result').text()).toEqual('Hello turbo')

test/integration/production-build-dir/test/index.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ describe('Production Custom Build Directory', () => {
1515
() => {
1616
describe('With basic usage', () => {
1717
it('should render the page', async () => {
18-
await runNextCommand(['build', 'build'], {
18+
const result = await runNextCommand(['build', 'build'], {
1919
cwd: join(__dirname, '..'),
2020
stdout: true,
2121
stderr: true,
2222
})
23+
expect(result.stderr).toBe('')
2324

2425
const appPort = await findPort()
2526
const app = await nextStart(join(__dirname, '../build'), appPort)

0 commit comments

Comments
 (0)