I have the src
and test
folders in my project. Since I don't want to compile my test files, I have ignored them in my tsconfig.json
file with the exclude
property, but I noticed that this also made TypeScript stopping verifying if my files are correct during the coding, so then I just see my errors when I run the tests. Is it possible to make TypeScript verify my code without compiling it? If yes, how? And if no, what do you suggest to solve my problem?
If It's any useful, here's my tsconfig.json
file:
{
"exclude": ["node_modules", "test"],
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"sourceMap": true,
"outDir": "./build",
"noEmitOnError": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
}