File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,32 @@ $ npm install -D espower-typescript
1717$ mocha --compilers ts:espower-typescript/guess test/** /* .ts
1818```
1919
20+ ### If your tests are not in test dir
21+
22+ You can set test directory in your ` package.json `
23+
24+ ``` json
25+ {
26+ "name" : " your-module" ,
27+ "description" : " Your module" ,
28+ "version" : " 0.0.1" ,
29+ "directories" : {
30+ "test" : " spec/"
31+ },
32+ ...
33+ }
34+ ```
35+
36+ Then, run mocha with ` --compilers js:espower-typescript/guess `
37+
38+ $ mocha --compilers js:espower-typescript/guess spec/**/*.js
39+
40+ Note: ` 'espower-typescript/guess' ` is inspired by [ intelli-espower-loader] ( https://github.com/azu/intelli-espower-loader )
41+
42+ ### tsconfig.json
43+
44+ TODO
45+
2046## License
2147
2248* MIT License: Teppei Sato
< ; [email protected] > ;
You can’t perform that action at this time.
0 commit comments