Vit Bokisch
Vit Bokisch
I'm having similar issue. **package.json:** ``` "enzyme": "^3.3.0", "enzyme-adapter-react-16": "^1.1.1", "enzyme-to-json": "^3.3.0", "jest-enzyme": "^4.0.2", "jest-expo": "^24.0.0", "jest-styled-components": "^4.10.0", ``` **I got an error:** ``` /projectDir/node_modules/jest-styled-components/src/native/toHaveStyleRule.js:15 const mergedStyles = styles.reduce((acc, item)...
In my case I was using `const tree = renderer.create().toJSON()`, now I switched to enzyme shallow and getting the same error as mentioned by @MoeSattler
Everything works when invoking toJSON function from `enzyme-to-json` manually. ``` import toJSON from 'enzyme-to-json' const tree = toJSON(shallow()) expect(tree).toMatchSnapshot() expect(tree).toHaveStyleRule('color', 'red') ``` So, as a workaround I've created custom shallow...
@Asamsig @JimmyVT I used EXIF js library to fix this issue. Tested on Safari, Chrome, FireFox, iOS and works well. @scottcheng As I'm not so familiar with webpack yet, feel...
Seems like one of the solutions can be creating your own `Spy` component in such a case, e.g. simple implementation could look like this: ```tsx import { VFC, useEffect }...
The solution is to downgrade `imagemin-svgo` to version `9.0.0`. The latest version (`10.0.0`) has ES module support only, therefore is not compatible with `next-optimized-images` package (this package still uses `require`...
@trabati Was looking for the same, seems https://www.kubb.dev/plugins/plugin-react-query/ to be an interesting possible alternative