power-assert instrumentor for TypeScript
$ npm install -D espower-typescript
- espower-typescript v5.x uses TypeScript v1.8
- espower-typescript v4.x uses TypeScript v1.7
- espower-typescript v2.x and v3.x uses TypeScript v1.6
- espower-typescript v1.x uses TypeScript v1.5
$ mocha --compilers ts:espower-typescript/guess test/**/*.ts
You can set test directory in your package.json
{
"name": "your-module",
"description": "Your module",
"version": "0.0.1",
"directories": {
"test": "spec/"
},
...
}
Then, run mocha with --compilers ts:espower-typescript/guess
$ mocha --compilers ts:espower-typescript/guess spec/**/*.ts
Note: 'espower-typescript/guess'
is inspired by intelli-espower-loader
If tsconfig.json is in your prject root, 'espower-typescript/guess'
loads it automatically.
Note: only compilerOptions
field in tsconfig.json is applied.
.tsx
files are supported.
- MIT License: Teppei Sato <[email protected]>
- Includes yosuke-furukawa/espower-traceur
- Includes azu/espower-babel