Skip to content

Commit c2b7b3d

Browse files
update readme for mocha
1 parent 1c93c19 commit c2b7b3d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,18 @@ require('babel-register')({
128128
})
129129
```
130130

131+
## Using in mocha
132+
133+
Create a js file with content
134+
135+
```js
136+
require('babel-register')({
137+
ignore: /processCss\.js$/ // regex matching all files used by css-modules-require-hook to process your css files
138+
})
139+
```
140+
141+
and then set this file as a compiler `--compilers js:<name-of-your-file>.js`
142+
131143
## License
132144

133145
MIT

0 commit comments

Comments
 (0)