Jest json5 transformer updated to ESM and to work with Jest ≥ 28.
$ npm i -D json5-jest-new
Please append to package.json
"jest": {
"transform": {
"^.+\\.json5?$": "json5-jest-new"
}
}
or append to jest.config.js
module.exports = {
transform: {
"^.+\\.json5?$": "json5-jest-new"
}
};
- node ≥ 6.9.0
MIT & CC0-1.0