-
Notifications
You must be signed in to change notification settings - Fork 26.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
42 deletions.
There are no files selected for viewing
34 changes: 15 additions & 19 deletions
34
test/production/app-dir/barrel-optimization/basic/index.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
import { createNextDescribe } from 'e2e-utils' | ||
|
||
// Skipped in Turbopack, will be added later. | ||
;(process.env.TURBOPACK ? describe.skip : describe)( | ||
'Skipped in Turbopack', | ||
() => { | ||
createNextDescribe( | ||
'app-dir - optimizePackageImports - basic', | ||
{ | ||
files: __dirname, | ||
}, | ||
({ next }) => { | ||
it('should build successfully', async () => { | ||
// Ensure that MUI is working | ||
const $ = await next.render$('/') | ||
expect(await $('#client-mod').text()).toContain('client:default') | ||
}) | ||
} | ||
) | ||
} | ||
) | ||
describe('Skipped in Turbopack', () => { | ||
createNextDescribe( | ||
'app-dir - optimizePackageImports - basic', | ||
{ | ||
files: __dirname, | ||
}, | ||
({ next }) => { | ||
it('should build successfully', async () => { | ||
// Ensure that MUI is working | ||
const $ = await next.render$('/') | ||
expect(await $('#client-mod').text()).toContain('client:default') | ||
}) | ||
} | ||
) | ||
}) |
42 changes: 19 additions & 23 deletions
42
test/production/app-dir/barrel-optimization/mui/index.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,23 @@ | ||
import { createNextDescribe } from 'e2e-utils' | ||
|
||
// Skipped in Turbopack, will be added later. | ||
;(process.env.TURBOPACK ? describe.skip : describe)( | ||
'Skipped in Turbopack', | ||
() => { | ||
createNextDescribe( | ||
'app-dir - optimizePackageImports - mui', | ||
{ | ||
files: __dirname, | ||
describe('Skipped in Turbopack', () => { | ||
createNextDescribe( | ||
'app-dir - optimizePackageImports - mui', | ||
{ | ||
files: __dirname, | ||
|
||
dependencies: { | ||
'@mui/material': '5.15.15', | ||
'@emotion/react': '11.11.1', | ||
'@emotion/styled': '11.11.0', | ||
}, | ||
dependencies: { | ||
'@mui/material': '5.15.15', | ||
'@emotion/react': '11.11.1', | ||
'@emotion/styled': '11.11.0', | ||
}, | ||
({ next }) => { | ||
it('should build successfully', async () => { | ||
// Ensure that MUI is working | ||
const $ = await next.render$('/') | ||
expect(await $('#typography').text()).toContain('typography') | ||
}) | ||
} | ||
) | ||
} | ||
) | ||
}, | ||
({ next }) => { | ||
it('should build successfully', async () => { | ||
// Ensure that MUI is working | ||
const $ = await next.render$('/') | ||
expect(await $('#typography').text()).toContain('typography') | ||
}) | ||
} | ||
) | ||
}) |