next.js/test/e2e/app-dir/next-config-ts/nested-imports/next-config-ts-nested-imports-esm.test.ts
next-config-ts-nested-imports-esm.test.ts16 lines355 B
import { nextTestSetup } from 'e2e-utils'

describe('next-config-ts-nested-imports-esm', () => {
  const { next } = nextTestSetup({
    files: __dirname,
    packageJson: {
      type: 'module',
    },
  })

  it('should handle nested imports (ESM)', async () => {
    const $ = await next.render$('/')
    expect($('p').text()).toBe('foobarbaz')
  })
})
Quest for Codev2.0.0
/
SIGN IN