Skip to content

Commit aef602e

Browse files
committed
docs(readme): update
1 parent 18a7753 commit aef602e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff 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]>

0 commit comments

Comments
 (0)