next.js/test/e2e/app-dir/app-routes-client-component/app-routes-client-component.test.ts
app-routes-client-component.test.ts15 lines375 B
import { nextTestSetup } from 'e2e-utils'

describe('referencing a client component in an app route', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('responds without error', async () => {
    expect(JSON.parse(await next.render('/runtime'))).toEqual({
      clientComponent: 'function',
      myModuleClientComponent: 'function',
    })
  })
})
Quest for Codev2.0.0
/
SIGN IN