Skip to content

Commit

Permalink
Add missing MockRouter prop in generated test utils (#4043)
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon Bayer <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 11, 2023
1 parent 7abfb90 commit bcef81f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-jars-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---

Fix missing MockRouter prop in test utils
1 change: 1 addition & 0 deletions packages/generator/templates/app/test/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const mockRouter: NextRouter = {
isReady: true,
isLocaleDomain: false,
isPreview: false,
forward: vi.fn(),
push: vi.fn(),
replace: vi.fn(),
reload: vi.fn(),
Expand Down

0 comments on commit bcef81f

Please sign in to comment.