mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This may or may not help with the [flakiness](https://app.datadoghq.com/ci/test-runs?query=test_level%3Atest%20env%3Aci%20%40git.repository.id%3Agithub.com%2Fvercel%2Fnext.js%20%40test.service%3Anextjs%20%40test.suite%3A%22tsconfig-path-reloading%22%20%40test.status%3Afail&agg_m=count&agg_m_source=base&agg_t=count¤tTab=overview&eventStack=&fromUser=false&index=citest&start=1713291659981&end=1721067659981&paused=false) of the `tsconfig-path-reloading` test with turbopack. I also found a race condition bug in `packages/next/src/server/lib/router-utils/setup-dev-bundler.ts` after removing an artificial delay of 200ms in the `jsconfig-path-reloading` test.
23 lines
525 B
TypeScript
23 lines
525 B
TypeScript
import { nextTestSetup } from 'e2e-utils'
|
|
|
|
describe('custom-app-render', () => {
|
|
const { next, skipped } = nextTestSetup({
|
|
files: __dirname,
|
|
skipDeployment: true,
|
|
startCommand: 'node server.js',
|
|
serverReadyPattern: /Next mode: (production|development)/,
|
|
dependencies: {
|
|
'get-port': '5.1.1',
|
|
},
|
|
})
|
|
|
|
if (skipped) {
|
|
return
|
|
}
|
|
|
|
it.each(['/', '/render'])('should render %s', async (page) => {
|
|
const $ = await next.render$(page)
|
|
expect($('#page').data('page')).toBe(page)
|
|
})
|
|
})
|