fix: test error

This commit is contained in:
DIYgod
2024-03-03 22:21:24 +08:00
parent 1ba7bc25bb
commit b98c99928f
2 changed files with 7 additions and 7 deletions

View File

@@ -43,12 +43,12 @@ for (const dir in maintainerPath) {
} }
// 兼容旧版路由 // 兼容旧版路由
const router = require('../../lib/router.js'); // const router = require('../../lib/router.js');
for (const e of router.stack) { // for (const e of router.stack) {
if (!maintainers[e.path]) { // if (!maintainers[e.path]) {
maintainers[e.path] = []; // maintainers[e.path] = [];
} // }
} // }
const maintainer = Object.keys(maintainers) const maintainer = Object.keys(maintainers)
.sort() .sort()

View File

@@ -8,9 +8,9 @@ export default defineConfig({
coverage: { coverage: {
include: ['lib/**/*.ts'], include: ['lib/**/*.ts'],
exclude: ['lib/routes/**', 'lib/routes-deprecated/**'], exclude: ['lib/routes/**', 'lib/routes-deprecated/**'],
reporter: ['junit'],
}, },
testTimeout: 10000, testTimeout: 10000,
exclude: ['website', ...defaultExclude], exclude: ['website', ...defaultExclude],
reporters: ['junit'],
}, },
}); });