Skip to content

Commit c27b92a

Browse files
authored
Merge pull request #28 from MatrixAI/vscode
Added note about VSCode and path aliases in tests [ci skip], fixes #18
2 parents 7eb43cd + e0f767b commit c27b92a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,24 @@ Due to https://github.com/microsoft/TypeScript/issues/10866, you cannot use path
8181

8282
However we have left the path alias configuration in `tsconfig.json`, `jest.config.js` and in the tests we are making use of the `@` alias.
8383

84+
#### VSCode Path Aliases
85+
86+
VSCode cannot follow path aliases in our tests due to
87+
https://github.com/microsoft/vscode/issues/94474.
88+
89+
To resolve this, add `./tests/**/*` into the `tsconfig` `include` section:
90+
91+
```json
92+
"include": [
93+
"./src/**/*",
94+
"./tests/**/*'
95+
]
96+
```
97+
98+
This will however make `tsc` build the `tests` into the `dist` output.
99+
100+
**Therefore this fix should only be done in your own workspace, do not commit or push this change up.**
101+
84102
### Docs Generation
85103

86104
```sh

0 commit comments

Comments
 (0)