File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 22> jest json5 transformer
33
44## Installation
5+
6+ for jest >= 28
57```
68$ npm i -D json5-jest
79```
810
11+ for jest <= 27
12+ ```
13+ $ npm i -D json5-jest@1
14+ ```
15+
916## Jest integration
1017Please append to package.json
1118``` json
1219"jest" : {
1320 "transform" : {
14- "^.+\\ .json5? $" : " json5-jest"
21+ "^.+\\ .json5$" : " json5-jest"
1522 }
1623}
1724```
@@ -20,17 +27,20 @@ or append to jest.config.js
2027``` js
2128module .exports = {
2229 transform: {
23- " ^.+\\ .json5? $" : " json5-jest"
30+ " ^.+\\ .json5$" : " json5-jest"
2431 }
2532};
2633```
2734
2835## Requirements
2936- node >= 6.9.0
3037- npm >= 2.x
38+ - jest >= 28
3139
3240## Licence
3341MIT
3442
3543## Contributers
3644- [ @MaxMellon ] ( https://github.com/MaxMEllon )
45+ - [ @wjbenfold ] ( https://github.com/wjbenfold )
46+ - [ @Duke242 ] ( https://github.com/Duke242 )
You can’t perform that action at this time.
0 commit comments