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

Function runTests

test/integration/router-rerender/test/index.test.ts:18–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16let app
17
18const runTests = () => {
19 describe('with middleware', () => {
20 it('should not trigger unnecessary rerenders when middleware is used', async () => {
21 const browser = await webdriver(appPort, '/')
22 await new Promise((resolve) => setTimeout(resolve, 100))
23
24 expect(await browser.eval('window.__renders')).toEqual([undefined])
25 })
26 })
27
28 describe('with rewrites', () => {
29 // TODO: Figure out the `isReady` issue.
30 it.skip('should not trigger unnecessary rerenders when rewrites are used', async () => {})
31 it.skip('should rerender with the correct query parameter if present with rewrites', async () => {})
32 })
33}
34
35describe('router rerender', () => {
36 ;(process.env.TURBOPACK_BUILD ? describe.skip : describe)(

Callers 1

index.test.tsFile · 0.70

Calls 6

describeFunction · 0.85
webdriverFunction · 0.85
evalMethod · 0.80
itFunction · 0.50
setTimeoutFunction · 0.50
expectFunction · 0.50

Tested by

no test coverage detected