Skip to content

Commit a8a21ed

Browse files
committed
fixup! Turbopack: support config.turbopack and deprecate config.experimental.turbopack.
1 parent a2437fa commit a8a21ed

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

Diff for: test/e2e/turbopack-turbo-config-compatibility/index.test.ts

+11-15
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')

0 commit comments

Comments
 (0)