chore: fixes test typing

This commit is contained in:
2026-04-23 23:59:37 -03:00
parent 1c75030ef4
commit 50937d7e0c
2 changed files with 14 additions and 1 deletions

View File

@@ -44,7 +44,7 @@
"jest": { "jest": {
"testEnvironment": "node", "testEnvironment": "node",
"transform": { "transform": {
"^.+\\.(ts|tsx)$": "ts-jest" "^.+\\.(ts|tsx)$": ["ts-jest", { "tsconfig": "tsconfig.test.json" }]
}, },
"moduleNameMapper": { "moduleNameMapper": {
"\\.(png|jpg|jpeg|gif|webp|svg|ico)$": "<rootDir>/tests/setup/__mocks__/fileMock.js", "\\.(png|jpg|jpeg|gif|webp|svg|ico)$": "<rootDir>/tests/setup/__mocks__/fileMock.js",

13
tsconfig.test.json Normal file
View File

@@ -0,0 +1,13 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noUnusedLocals": false,
"noUnusedParameters": false
},
"include": [
"src/global.d.ts",
"src/**/*.ts",
"tests/**/*.ts"
]
}