mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 19:59:54 +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');
|
const toSource = require('tosource');
|
||||||
|
|
||||||
// Namespaces that do not require radar.js
|
// 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
|
// Check if a radar.js file is exist under each folder of dirname
|
||||||
for (const dir of fs.readdirSync(dirname)) {
|
for (const dir of fs.readdirSync(dirname)) {
|
||||||
const dirPath = path.join(dirname, dir);
|
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';
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
@@ -11,5 +11,6 @@ export default defineConfig({
|
|||||||
reporter: ['junit'],
|
reporter: ['junit'],
|
||||||
},
|
},
|
||||||
testTimeout: 10000,
|
testTimeout: 10000,
|
||||||
|
exclude: ['website', ...defaultExclude],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user