next.js/test/development/next-config-ts/turbo/index.test.ts
index.test.ts16 lines456 B
import { nextTestSetup } from 'e2e-utils'
;(process.env.IS_TURBOPACK_TEST ? describe : describe.skip)(
  'next-config-ts - turbopack',
  () => {
    const { next } = nextTestSetup({
      files: __dirname,
      // explicitly ensure that turbopack is used
      startCommand: 'pnpm next dev --turbopack',
    })
    it('should work with Turbopack', async () => {
      const $ = await next.render$('/')
      expect($('p').text()).toBe('foo')
    })
  }
)
Quest for Codev2.0.0
/
SIGN IN