-
Notifications
You must be signed in to change notification settings - Fork 235
Closed
Description
My tsconfig file currently looks like this
{
"compilerOptions": {
"alwaysStrict": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"noUnusedParameters": true,
"noEmitOnError": true,
"noUnusedLocals": true,
"declaration": false,
"target": "es2015",
"baseUrl": ".",
"paths": {
"*": [
"src/*"
]
},
"moduleResolution": "node",
"lib": ["es6", "dom"]
},
"exclude": [
"node_modules",
"dist",
"**/tests/*.test.ts",
"src/tests"
]
}
And my code is setup where my unit test files are located in a tests
directory as a sibling of the source file, e.g.
/lib
/tests
Utils.test.ts
Utils.ts
When I compile my code the current setup works find and ignores all unit test files during compilation. However, when I open the unit test files in Sublime with this configuration it can't find any of the global types that it should find from jasmine/karma/etc.
If I remove the unit test file from the exclude
list in tsconfig, then it all starts working again.
Is there a way to exclude files from TS compilation but still have the plugin process them correctly?
thomasdondorf, zone117x, a1300, SnosMe, light0x00 and 12 moreC-Otto, rmolinamir and fpereira1
Metadata
Metadata
Assignees
Labels
No labels