15 lines
432 B
JavaScript
15 lines
432 B
JavaScript
/** @type {import('jest').Config} */
|
|
module.exports = {
|
|
moduleFileExtensions: ['js', 'json', 'ts'],
|
|
rootDir: 'src',
|
|
testRegex: '\\.integration\\.spec\\.ts$',
|
|
transform: {
|
|
'^.+\\.(t|j)s$': 'ts-jest',
|
|
},
|
|
collectCoverageFrom: ['**/*.(t|j)s'],
|
|
coverageDirectory: '../coverage-integration',
|
|
testEnvironment: 'node',
|
|
// 集成测试串行执行,避免多个测试同时写同一个 SQLite 文件
|
|
maxWorkers: 1,
|
|
};
|