fix: test error

This commit is contained in:
DIYgod 2024-03-03 23:11:42 +08:00
parent b98c99928f
commit 310180d61f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ type Root = {
const routes: Record<string, (root: Root) => void> = {};
if (process.env.NODE_ENV === 'test') {
routes.test = (await import('./routes/test/router')).default;
routes.test = require('./routes/test/router').default;
} else {
const imports = directoryImport({
targetDirectoryPath: path.join(__dirname, './routes'),