Closed risingsunomi closed 6 years ago
facebook/jest#5772
@dazip I don't know how or where to implement --skip-empty through the jest settings in package.json
@ryan-lang I have made my package.json
"devDependencies": {
"eslint": "^4.18.2",
"eslint-config-google": "^0.9.1",
"istanbul": "^0.4.5",
"istanbul-api": "^1.3.1",
"istanbul-lib-report": "^1.1.3",
"istanbul-reports": "1.1.4",
"jest": "^22.4.2"
}
but no fix
@risingsunomi My workaround was to pin the following versions, delete node_modules and reinstall fresh. Although, this is shaky because you may have another dependency pulling in the newer broken version.
"istanbul-api": "1.2.2",
"istanbul-reports": "1.1.4",
@ryan-lang ok thank you - trying that now
@ryan-lang that worked! Thank you very much. Apprectiate it.
Delete your local node_modules
Put in your package.json
"devDependencies": {
"eslint": "^4.18.2",
"eslint-config-google": "^0.9.1",
"istanbul": "^0.4.5",
"istanbul-api": "1.2.2",
"istanbul-reports": "1.1.4",
"jest": "^22.4.2"
},
With
"istanbul-api": "1.2.2",
"istanbul-reports": "1.1.4"
Problem
When running npm test using jest with jest configuration
In the package.json and using npm test, I am receiving this error at the end of a test
With a test ./tests/RSS_IO_test.js
of a class RSS_IO
Research
Looking at the file ./node_modules/istanbul-reports/lib/text/index.js around Line 133
There seems to be a metrics object calling isEmpty either incorrectly by name/reference or not defined.
Ask
Is there any reason to why isEmpty() of the metrics object not be defined? Missing library? Missing install library?
Thank you