next.js/test/e2e/app-dir/next-config-ts/export-as-default/next-config-ts-export-as-default-esm.test.ts
next-config-ts-export-as-default-esm.test.ts16 lines356 B
import { nextTestSetup } from 'e2e-utils'

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

  it('should support export as default (ESM)', async () => {
    const $ = await next.render$('/')
    expect($('p').text()).toBe('foo')
  })
})
Quest for Codev2.0.0
/
SIGN IN