mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 04:11:26 +08:00
fix: test error
This commit is contained in:
@@ -6,7 +6,7 @@ const dirname = path.join(__dirname + '../../../lib/routes');
|
||||
const toSource = require('tosource');
|
||||
|
||||
// Namespaces that do not require radar.js
|
||||
const allowNamespace = new Set(['discourse', 'discuz', 'ehentai', 'lemmy', 'mail', 'test', 'index.ts', 'robots.txt.ts']);
|
||||
const allowNamespace = new Set(['discourse', 'discuz', 'ehentai', 'lemmy', 'mail', 'test', 'index.tsx', 'robots.txt.ts']);
|
||||
// Check if a radar.js file is exist under each folder of dirname
|
||||
for (const dir of fs.readdirSync(dirname)) {
|
||||
const dirPath = path.join(dirname, dir);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import { defineConfig, defaultExclude } from 'vitest/config';
|
||||
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||
|
||||
export default defineConfig({
|
||||
@@ -11,5 +11,6 @@ export default defineConfig({
|
||||
reporter: ['junit'],
|
||||
},
|
||||
testTimeout: 10000,
|
||||
exclude: ['website', ...defaultExclude],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user