next.js/test/e2e/app-dir/import/import.test.ts
import.test.ts15 lines365 B
import { nextTestSetup } from 'e2e-utils'

describe('app dir - imports', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  ;['js', 'jsx', 'ts', 'tsx'].forEach((ext) => {
    it(`we can import all components from .${ext}`, async () => {
      const $ = await next.render$(`/${ext}`)
      expect($('#js').text()).toBe('CompJs')
    })
  })
})
Quest for Codev2.0.0
/
SIGN IN