react-hot-toast
react-hot-toast copied to clipboard
TypeError: goober.keyframes is not a function
react-hot-toast version 1.0.1
I am getting this error when I try to run a test on a file that uses react-hot-toast TypeError: goober.keyframes is not a function
Hi! did you have any advance with this?
Not a great solution - but a solution none the less:
jest.mock("react-hot-toast", () => ({
Toaster: () => <>test</>,
}));
@jdbtc You can downgrade goober manually in yarn.lock || package-lock file to version “2.0.41” but I don't know what side effects you will have
Is this issue still present in the 2.3.0?
@timolins - yep, I've just upgraded there and re-ran my test suite. y.keyframes is not a function is the error now.
I'm having the same issue
'y.keyframes is not a function'
Also experiencing this in a webpack bundle. Using yarn, I added to my package.json resolutions
field as a workaround:
"resolutions": {
"goober": "2.1.9",
"react-hot-toast": "2.2.0"
}
Is there any visibility on this? Not being able to test any pages/components with toasts on prod apps seems like a pretty big deal