CFE-8 Setting up required next-router-mock

This commit is contained in:
AmirHossein Mahmoodi
2023-09-23 15:26:11 +03:30
parent 1fe87e740d
commit 8a0b42970f
2 changed files with 3 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
import '@testing-library/jest-dom'
import {server} from "./mocks/server";
jest.mock('next/router', () => jest.requireActual('next-router-mock'))
beforeAll(() => {
server.listen()
})

View File

@@ -62,6 +62,7 @@
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"msw": "^1.3.1",
"next-router-mock": "^0.9.9",
"run-script-os": "^1.1.6"
}
}