Skip to content

Commit

Permalink
chore: fix paths config
Browse files Browse the repository at this point in the history
- Remove baseUrl and paths from swcrc, it will be auto-populated from the tsconfig.json by nest-cli
- Update moduleNameMapper in jest configs
  • Loading branch information
fityannugroho committed Jul 15, 2023
1 parent 2506462 commit b8a0ddc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .swcrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
"transform": {
"legacyDecorator": true,
"decoratorMetadata": true
},
"baseUrl": "./",
"paths": {
"@/*": [
"src/*"
]
}
},
"minify": false
Expand Down
2 changes: 1 addition & 1 deletion jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"moduleNameMapper": {
"^~/(.*)$": "<rootDir>/$1"
"^@/(.*)$": "<rootDir>/src/$1"
}
}
2 changes: 1 addition & 1 deletion test/jest-e2e.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
]
},
"moduleNameMapper": {
"^~/(.*)$": "<rootDir>/../$1"
"^@/(.*)$": "<rootDir>/../src/$1"
},
"testTimeout": 25000
}

0 comments on commit b8a0ddc

Please sign in to comment.