Closed jimmy-e closed 4 years ago
@aleclarson was wondering if I could get an update?
Try with v9 beta:
npm i react-spring@next
Be sure to import Spring
from react-spring
instead of react-spring/renderprops
@aleclarson , I have updated the repo with the latest version of react-spring (^9.0.0-beta.33
) and updated importing but am still getting the same error message.
@aleclarson is there any update with this?
I get this error when I run yarn
in your repo:
An unexpected error occurred: "https://npm.fontawesome.com/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.21.tgz: Request failed \"401 Unauthorized\"".
@aleclarson , that issue should be resolved now.
@aleclarson is there an update with this?
Haven't had time to check it out yet. You can use issuehunt.io to put a bounty on this issue if it's a blocker for you.
In jest.config.js
, you should be using:
'^react-spring$': '<rootDir>/node_modules/react-spring/web.cjs',
Without the ^
and $
, you'll accidentally use that module for every package in the @react-spring
package scope.
Your test ran fine when I removed that line entirely, so I don't think you even need it.
🐛 Bug Report
Writing Jest / Enzyme tests with Typescript using React-Spring returns a warning.
To Reproduce
Clone this repo. Run
yarn
. Runyarn test navigation.test.tsx
The expected warning is as follows:
Expected behavior
No warning should be returned. If you run
yarn test navigationTwo.test.tsx
, no warning is returned. This is a similar component, but instead it does not use React-Spring.Environment
react-spring
v8.0.27react
v16.4.0