fix: 修正 Jest 配置中的文件路径,移除 next-auth mock

This commit is contained in:
张翔
2026-04-21 07:43:28 +08:00
parent a88466965b
commit 78090d1f15
2 changed files with 3 additions and 34 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ module.exports = {
},
},
coverageReporters: ['text', 'lcov', 'html', 'json'],
coverageDirectory: 'coverage',
coverageDirectory: '<rootDir>/coverage',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
@@ -33,4 +33,4 @@ module.exports = {
testTimeout: 10000,
verbose: true,
maxWorkers: '50%',
};
};