Commit 3100b3e2 authored by tom's avatar tom

more tests

parent 958a8131
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest: watch current file",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
"args": [
"${fileBasename}",
"--runInBand",
"--verbose",
"-i",
"--no-cache",
"--watchAll",
"--testTimeout=1000000000",
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}
\ No newline at end of file
...@@ -2,7 +2,7 @@ import type { NextRouter } from 'next/router'; ...@@ -2,7 +2,7 @@ import type { NextRouter } from 'next/router';
export const router = { export const router = {
query: {}, query: {},
push: jest.fn(), push: jest.fn(() => Promise.resolve()),
}; };
export const useRouter = jest.fn<unknown, Array<Partial<NextRouter>>>(() => (router)); export const useRouter = jest.fn<unknown, Array<Partial<NextRouter>>>(() => (router));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment