We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
currentBatch
createRouterAct
1 parent eec714a commit b7dbe58Copy full SHA for b7dbe58
test/lib/e2e-utils/router-act.ts
@@ -19,8 +19,6 @@ type PendingRSCRequest = {
19
didProcess: boolean
20
}
21
22
-let currentBatch: Batch | null = null
23
-
24
type ExpectedResponseConfig = { includes: string; block?: boolean | 'reject' }
25
26
/**
@@ -55,6 +53,8 @@ type ActConfig =
55
53
export function createRouterAct(
56
54
page: Playwright.Page
57
): <T>(scope: () => Promise<T> | T, config?: ActConfig) => Promise<T> {
+ let currentBatch: Batch | null = null
+
58
59
* Test utility for requests initiated by the Next.js Router, such as
60
* prefetches and navigations. Calls the given async function then intercepts
0 commit comments