Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit 6cefab6

Browse files
committed
Ignores server.ts file from mapDir. Was causing leak in tests because server.ts was being executed and dataSource was being initialized again
1 parent 365719f commit 6cefab6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/api/src/unprotectedRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ unprotectedRouter.swagger({
1717
})
1818

1919
// mapDir will scan the input dir, and automatically call router.map to all Router Class
20-
unprotectedRouter.mapDir(__dirname)
20+
unprotectedRouter.mapDir(__dirname, { ignore: ['server.ts']})
2121

2222
export { unprotectedRouter }

0 commit comments

Comments
 (0)