-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Description
When using absolute paths in test files, such as:
import AuthRoute from '@routes/auth.route';
The test file shows error because the absolute path is not recognized. This is likely due to the exclusion of the src/tests folder in the tsconfig.json configuration.
Suggested Solution:
To fix this issue, simply modify the tsconfig.json file to exclude the tests directory instead of src/tests.
Change this line in tsconfig.json:
"exclude": ["node_modules", "src/http", "src/logs", "src/tests"]
To:
"exclude": ["node_modules", "src/http", "src/logs"]
Metadata
Metadata
Assignees
Labels
No labels
