File tree 1 file changed +11
-15
lines changed
test/e2e/turbopack-turbo-config-compatibility
1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -19,27 +19,23 @@ describe('turbopack-turbo-config-compatibility', () => {
19
19
describe ( 'only including deprecated experimental turbo config' , ( ) => {
20
20
const { next, isTurbopack } = nextTestSetup ( {
21
21
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
+ } ,
22
33
} )
23
34
24
35
if ( ! isTurbopack ) {
25
36
return
26
37
}
27
38
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
-
43
39
it ( 'still uses the deprecated experimental turbo config' , async ( ) => {
44
40
const $ = await next . render$ ( '/' )
45
41
expect ( $ ( '#result' ) . text ( ) ) . toEqual ( 'Hello turbo' )
You can’t perform that action at this time.
0 commit comments