Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

Unable to run with Jest in create-react-app environment #75

Open
SpencerGreene opened this issue Mar 26, 2018 · 1 comment
Open

Unable to run with Jest in create-react-app environment #75

SpencerGreene opened this issue Mar 26, 2018 · 1 comment

Comments

@SpencerGreene
Copy link

SpencerGreene commented Mar 26, 2018

The graphql version referenced by [email protected] and the jest version referenced by [email protected] seem to be incompatible with one another. Gives an error message:

 FAIL  src/react.spec.js
  ● Test suite failed to run

    /Users/sgreene/src/tutorials/test-navalia/node_modules/graphql/index.mjs:2
    export { graphql, graphqlSync } from './graphql';
    ^^^^^^

Steps to reproduce:

  1. Install [email protected] (current stable version as of this writing)
  2. create-react-app test-navalia
  3. Create the app Login-Page.js and the first test react.spec.js from the blog post https://codeburst.io/composable-end-to-end-tests-for-react-apps-2ec82170af62.
  4. yarn test.

package.json looks like this:

{
  "name": "test-navalia",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "react": "^16.2.0",
    "react-dom": "^16.2.0",
    "react-scripts": "1.1.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  },
  "devDependencies": {
    "navalia": "^1.3.0"
  }
}
@WertiaCoffee
Copy link

What's the point of this program

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants