Skip to content

Commit 847b506

Browse files
committed
test: add useHooks
1 parent ee2b881 commit 847b506

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,10 +559,10 @@ describe('onBuild()', () => {
559559
expect(existsSync(odbHandlerFile)).toBeTruthy()
560560

561561
expect(readFileSync(handlerFile, 'utf8')).toMatch(
562-
`({ conf: config, app: "../../..", pageRoot, NextServer, staticManifest, mode: 'ssr' })`,
562+
`({ conf: config, app: "../../..", pageRoot, NextServer, staticManifest, mode: 'ssr', useHooks: false})`,
563563
)
564564
expect(readFileSync(odbHandlerFile, 'utf8')).toMatch(
565-
`({ conf: config, app: "../../..", pageRoot, NextServer, staticManifest, mode: 'odb' })`,
565+
`({ conf: config, app: "../../..", pageRoot, NextServer, staticManifest, mode: 'odb', useHooks: false})`,
566566
)
567567
expect(readFileSync(handlerFile, 'utf8')).toMatch(`require("../../../.next/required-server-files.json")`)
568568
expect(readFileSync(odbHandlerFile, 'utf8')).toMatch(`require("../../../.next/required-server-files.json")`)

0 commit comments

Comments
 (0)