test: dublê central de next/navigation para todos os testes
This commit is contained in:
1 parent
2cd4a98c55
commit
cf360041bd
2 files changed
+111
No files matched your search
@@ -12,6 +12,8 @@ const config: Config = {
|
||||
"^@/(.*)$": "<rootDir>/$1",
|
||||
"^.+\\.(css|sass|scss)$": "identity-obj-proxy",
|
||||
"^server-only$": "<rootDir>/lib/__mocks__/server-only.ts",
|
||||
// dublê completo e central: nenhum teste monta um mock parcial de next/navigation
|
||||
"^next/navigation$": "<rootDir>/__mocks__/next/navigation.ts",
|
||||
},
|
||||
testMatch: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
|
||||
transform: {
|
||||
|
||||
Reference in new issue
Block a user