unit testing - Typescript: how to disable spec.ts file generation? -


i'm developing angular2 app typescript , every time run typescript transpiler creates spec.ts files. unit tests source files because convention angular2 applications have file each .ts file.

since @ moment don't want test, temporaly disable generation of spec.ts files, bit messy handle source files.

do know how that?

edit: here tsconfig.json file:

{     "compileroptions": {     "module": "commonjs",     "target": "es5",     "noimplicitany": true,     "suppressimplicitanyindexerrors": true,     "outdir": "dist",     "rootdir": "./src",     "sourcemap": true,     "emitdecoratormetadata": true,     "experimentaldecorators": true,     "moduleresolution": "node"   },   "exclude": [     "typings/main.d.ts",     "typings/main",     "node_modules"   ] } 

you can configure tsconfig.json file achieve this. can specify files compile adding them files array or can tell typescript exclude file or folder including in exclude array.

here link official docs.

but far can tell can't provide patter so: '/**.spec.ts'


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -