diff --git a/scripts/workflow/build-maintainer.js b/scripts/workflow/build-maintainer.js index c2511ad470..20a01d0444 100644 --- a/scripts/workflow/build-maintainer.js +++ b/scripts/workflow/build-maintainer.js @@ -43,12 +43,12 @@ for (const dir in maintainerPath) { } // 兼容旧版路由 -const router = require('../../lib/router.js'); -for (const e of router.stack) { - if (!maintainers[e.path]) { - maintainers[e.path] = []; - } -} +// const router = require('../../lib/router.js'); +// for (const e of router.stack) { +// if (!maintainers[e.path]) { +// maintainers[e.path] = []; +// } +// } const maintainer = Object.keys(maintainers) .sort() diff --git a/vitest.config.ts b/vitest.config.ts index 35b24cb76a..d49284f05f 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -8,9 +8,9 @@ export default defineConfig({ coverage: { include: ['lib/**/*.ts'], exclude: ['lib/routes/**', 'lib/routes-deprecated/**'], - reporter: ['junit'], }, testTimeout: 10000, exclude: ['website', ...defaultExclude], + reporters: ['junit'], }, });