https://github.com/ryosukecla/json5-jest
jest json5 transformer
https://github.com/ryosukecla/json5-jest
jest json json5 transform
Last synced: about 1 year ago
JSON representation
jest json5 transformer
- Host: GitHub
- URL: https://github.com/ryosukecla/json5-jest
- Owner: RyosukeCla
- License: mit
- Created: 2018-07-26T09:04:10.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-06-14T04:28:44.000Z (about 3 years ago)
- Last Synced: 2025-04-22T19:18:09.334Z (about 1 year ago)
- Topics: jest, json, json5, transform
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/json5-jest
- Size: 104 KB
- Stars: 7
- Watchers: 0
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# json5-jest [](https://www.npmjs.com/package/json5-jest) [](https://travis-ci.org/RyosukeCla/json5-jest)
> jest json5 transformer
## Installation
for jest >= 28
```
$ npm i -D json5-jest
```
for jest <= 27
```
$ npm i -D json5-jest@1
```
## Jest integration
Please append to package.json
```json
"jest": {
"transform": {
"^.+\\.json5$": "json5-jest"
}
}
```
or append to jest.config.js
```js
module.exports = {
transform: {
"^.+\\.json5$": "json5-jest"
}
};
```
## Requirements
- node >= 6.9.0
- npm >= 2.x
- jest >= 28
## Licence
MIT
## Contributers
- [@MaxMellon](https://github.com/MaxMEllon)
- [@wjbenfold](https://github.com/wjbenfold)
- [@Duke242](https://github.com/Duke242)