I've installed JSS and after adding tests to a JSS-styled component, I get this problem: import {create} from 'jss'
Here is my .babelrc:
{
"plugins": ["@babel/plugin-proposal-optional-chaining", "transform-class-properties"],
"presets": ["@babel/preset-env", "@babel/preset-react"],
"env": {
"test": {
"plugins": ["@babel/plugin-transform-runtime"]
}
}
}
JSS version 10.4.0
Am I missing some preset for JSS? I'm not sure why tests are failing.
Answers to similar questions seem outdated, and I have tried quite a few of them.
Aucun commentaire:
Enregistrer un commentaire