Skip to content

Commit

Permalink
Fix absolute path configuration
Browse files Browse the repository at this point in the history
- add all paths that should be available in the test folder to tsconfig.test.json
("extending" the list of paths from the parent config file is not enough)

- remove "@test" from the "root" tsconfig file because it's not needed in banners or src code
  • Loading branch information
moiikana committed Feb 18, 2025
1 parent 3a02f48 commit d0b12b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@banners/*": [ "banners/*" ]
}
"@banners/*": [ "banners/*" ],
"@test/*": [ "test/*" ],
"@src/*": [ "src/*" ],
"@environment/*": [ "src/environment/prod/*", "src/environment/dev/*" ]
},
}
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"moduleResolution": "node",
"paths": {
"@src/*": [ "src/*" ],
"@test/*": [ "test/*" ],
"@environment/*": [ "src/environment/prod/*", "src/environment/dev/*" ]
},
"lib": [
Expand Down

0 comments on commit d0b12b8

Please sign in to comment.