react-code-dataset
/
next.js
/test
/e2e
/app-dir
/app-routes-client-component
/app-routes-client-component.test.ts
| 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', | |
| }) | |
| }) | |
| }) | |