File size: 566 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { nextTestSetup } from 'e2e-utils'

describe('Skipped in Turbopack', () => {
  describe('app-dir - optimizePackageImports - mui', () => {
    const { next } = nextTestSetup({
      files: __dirname,

      dependencies: {
        '@mui/material': '5.15.15',
        '@emotion/react': '11.11.1',
        '@emotion/styled': '11.11.0',
      },
    })

    it('should build successfully', async () => {
      // Ensure that MUI is working
      const $ = await next.render$('/')
      expect(await $('#typography').text()).toContain('typography')
    })
  })
})