This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 786
Problems setting up local environment #717
Comments
I have the same problem too |
Update: react-apollo v1.3.0-alpha.1 works for me. Leaving post below for others: Second this...Can't find a workaround. Coming from CRA w/ react-apollo added in. react-apollo v1.2.0 (tested 1.1.3 as well) Tried to do a simple shallow render w/ enzyme & Jest. Even tried using only ReactDOM.
|
Hey @johnrjj what branch did you use to get the test working? |
@flexzuu |
@johnrjj i think we talk about different things. I want to get the tests working to develop a feature for react-apollo. It seems you just wanted to use react-apollo. On my side react-apollo is working but the test-setup seems to be broken. |
6 tasks
CI Seems to be broken aswell:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I just forked and cloned react-apollo, hoping to try to fix a bug I found, but ran into some issues that prevent me from contributing:
Steps to Reproduce
master
(this is commitf15b41273f8d927cf74a6e03238e37e3cca44b4d
at time of writing)yarn install
(since there's ayarn.lock
in the directory, I assume this is the right step)yarn test
Buggy Behavior
Jest finds no tests:
Expected Behavior
Many tests should run and they should all pass!
Versions
f15b41273f8d927cf74a6e03238e37e3cca44b4d
But wait, there's more
I noticed that the
testRegex
is... well, not really a regex. A quick skim of the Jest docs suggests that the<rootDir>
macro isn't supported for this open, so I removed it inpackage.json
:This gets a little bit further, but most test suites now fail with errors like:
The text was updated successfully, but these errors were encountered: