Skip to content

Commit 81a075e

Browse files
committed
Move router-act.ts to e2e-utils and delete outdated duplicate
In #84521, The test helper `router-act.ts` was copied from the `segment-cache` test suite to the `app-prefetch` test suite. This led to some confusion as the two copies diverged in #84603. To avoid this problem, the recently updated file has now been moved to `e2e-utils`, and the now outdated duplicate has been deleted.
1 parent 8be4e43 commit 81a075e

22 files changed

+23
-527
lines changed

test/e2e/app-dir/app-prefetch/prefetching.stale-times.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { FileRef, nextTestSetup } from 'e2e-utils'
2-
import { createRouterAct } from './router-act'
2+
import { createRouterAct } from 'e2e-utils/router-act'
33
import { createTimeController } from './test-utils'
44
import { join } from 'path'
55

test/e2e/app-dir/app-prefetch/prefetching.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { FileRef, nextTestSetup } from 'e2e-utils'
2+
import { createRouterAct } from 'e2e-utils/router-act'
23
import { waitFor, retry } from 'next-test-utils'
34
import { NEXT_RSC_UNION_QUERY } from 'next/dist/client/components/app-router-headers'
45
import { computeCacheBustingSearchParam } from 'next/dist/shared/lib/router/utils/cache-busting-search-param'
5-
import { createRouterAct } from './router-act'
66
import { createTimeController } from './test-utils'
77
import { join } from 'path'
88

0 commit comments

Comments
 (0)