Silence debug in tests

This commit is contained in:
MartinBraquet
2026-03-01 04:38:02 +01:00
parent 77f3b550d0
commit 0d57760d25
11 changed files with 15 additions and 8 deletions

View File

@@ -25,4 +25,5 @@ module.exports = {
},
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
silent: true,
}

View File

@@ -36,6 +36,6 @@
}
],
"compileOnSave": true,
"include": ["src/**/*.ts", "package.json", "backend/api/package.json"],
"include": ["src/**/*.ts", "package.json", "backend/api/package.json", "jest.config.ts"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"]
}

View File

@@ -22,4 +22,5 @@ module.exports = {
},
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
silent: true,
}

View File

@@ -30,5 +30,5 @@
"require": ["tsconfig-paths/register"]
},
"references": [{"path": "../../common"}, {"path": "../shared"}],
"include": ["emails/**/*.ts", "emails/**/*.tsx"]
"include": ["emails/**/*.ts", "emails/**/*.tsx", "jest.config.ts"]
}

View File

@@ -22,4 +22,5 @@ module.exports = {
},
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
silent: true,
}

View File

@@ -27,6 +27,6 @@
"path": "../../common"
}
],
"include": ["src/**/*.ts", "src/**/*.tsx"],
"include": ["src/**/*.ts", "src/**/*.tsx", "jest.config.ts"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"]
}

View File

@@ -1,6 +1,7 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
const {pathsToModuleNameMapper} = require('ts-jest')
const {compilerOptions} = require('./tsconfig')
import {readFileSync} from 'fs'
import {pathsToModuleNameMapper} from 'ts-jest'
const {compilerOptions} = JSON.parse(readFileSync('./tsconfig.json', 'utf-8'))
module.exports = {
preset: 'ts-jest',
@@ -10,4 +11,5 @@ module.exports = {
}),
testMatch: ['**/*.test.ts'],
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
silent: true,
}

View File

@@ -18,6 +18,6 @@
"common/*": ["./src/*", "../lib/*"]
}
},
"include": ["src/**/*.ts", "messages/*.json"],
"include": ["src/**/*.ts", "messages/*.json", "jest.config.ts"],
"exclude": ["**/*.test.ts", "**/*.spec.ts"]
}

View File

@@ -20,4 +20,5 @@ module.exports = {
'<rootDir>/common',
'<rootDir>/web',
],
silent: true,
}

View File

@@ -22,4 +22,5 @@ module.exports = {
},
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
silent: true,
}

View File

@@ -28,6 +28,6 @@
"watchOptions": {
"excludeDirectories": [".next"]
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "../common/src/**/*.ts"],
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "../common/src/**/*.ts", "jest.config.ts"],
"exclude": ["node_modules", "**/*.test.ts", "**/*.spec.ts"]
}