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 2733814 commit 139e76aCopy full SHA for 139e76a
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 = {
25
includes: string
26
block?: boolean | 'reject'
@@ -59,6 +57,8 @@ type ActConfig =
59
57
export function createRouterAct(
60
58
page: Playwright.Page
61
): <T>(scope: () => Promise<T> | T, config?: ActConfig) => Promise<T> {
+ let currentBatch: Batch | null = null
+
62
/**
63
* Test utility for requests initiated by the Next.js Router, such as
64
* prefetches and navigations. Calls the given async function then intercepts
0 commit comments