This question is similar to this question: How to use different tsconfig file for tests? But I am asking for visual studio code.
I have two tsconfig
files:
tsconfig.json
for all application filestsconfig.test.json
for all test files
tsconfig.json
excludes all *.spec.ts
while tsconfig.test.json
only includes these files.
How can I make visual studio code to understand that an opened .spec.ts
file belongs to tsconfig.test.json
?
I dont want to separate all my tests into an own test
directory with its own tsconfig.json
included but rather keep them next to the application files.