MCPcopy
hub / github.com/vercel/next.js / containConflictsError

Function containConflictsError

test/e2e/conflicting-app-page-error/index.test.ts:50–67  ·  view source on GitHub ↗
(browser, conflicts)

Source from the content-addressed store, hash-verified

48 }
49
50 async function containConflictsError(browser, conflicts) {
51 await retry(async () => {
52 await waitForRedbox(browser)
53 if (process.env.IS_TURBOPACK_TEST) {
54 expect(await getRedboxDescription(browser)).toContain(
55 'App Router and Pages Router both match path:'
56 )
57 }
58
59 if (!process.env.IS_TURBOPACK_TEST) {
60 for (const pair of conflicts) {
61 expect(await getRedboxSource(browser)).toContain(
62 `"${pair[0]}" - "${pair[1]}"`
63 )
64 }
65 }
66 })
67 }
68
69 if (isNextDev) {
70 it('should show error overlay for /another', async () => {

Callers 1

index.test.tsFile · 0.85

Calls 5

retryFunction · 0.90
waitForRedboxFunction · 0.90
getRedboxDescriptionFunction · 0.90
getRedboxSourceFunction · 0.90
expectFunction · 0.50

Tested by

no test coverage detected