I feel like the answer to my question should be in the tsconfig reference, but I'm not finding a property for this.
I have a typescript project with many files. Some of them are *.test.ts files. These are tests and it is important to me that they are type checked, but I don't want them to be included in the final output.
I know the directory structure is relevant to answering this question, but I actually have two projects with unrelated directory structures and I want to know how to do this with both:
- One project has separate
/srcand/testdirectories. - In the other, source and test files share the same root and are intermingled in the same folders