chore: add fetch funtcion & add tests to helper module
This commit is contained in:
parent
e289aeea27
commit
7b5e820285
22 changed files with 315 additions and 17 deletions
|
|
@ -11,8 +11,7 @@ const createJestConfig = nextJest({
|
|||
const config = {
|
||||
// Add more setup options before each test is run
|
||||
// setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
||||
setupFilesAfterEnv: ["@testing-library/jest-dom/extend-expect"],
|
||||
testEnvironment: "jest-environment-jsdom",
|
||||
...(await import("config/jest.config.js")).default,
|
||||
}
|
||||
|
||||
// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue