Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

bump jest version #255

Open
rolandjitsu opened this issue Feb 15, 2018 · 6 comments
Open

bump jest version #255

rolandjitsu opened this issue Feb 15, 2018 · 6 comments

Comments

@rolandjitsu
Copy link

rolandjitsu commented Feb 15, 2018

Would it be possible to bump the version of jest from 20.0.4 to 22.2.x? I'm having some trouble with a monorepo and yarn workspaces currently (due to hoisting of packages).

And it doesn't look like jest has any breaking changes according to their changelog My bad, there are actually lots of changes, but mostly new features.

See facebook/create-react-app#4021.

@rolandjitsu
Copy link
Author

I could make a PR. But I'm not sure about the implications of this upgrade.

@tehwalris
Copy link

The version was bumped to 22 in this commit. I don't think the change is released yet.

@rolandjitsu
Copy link
Author

@tehwalris nope, npm is still at 2.13.0.

@tehwalris
Copy link

tehwalris commented Feb 19, 2018

I've worked around the issue using nohoist in yarn nightly (PR, guide). Specifically, this is my workspace-level package.json:

{
  "private": true,
  "workspaces": {
    "packages": ["my-package", "another"],
    "nohoist": ["**/jest-runner", "**/jest-runner/**"]
  }
}

Hope that helps.

@rolandjitsu
Copy link
Author

@tehwalris I will need to wait with that one until there is a stable release (1.4.2 as they plan), but thanks for sharing the guide.

@danielkcz
Copy link

Any plans on releasing a new version with this? Either way, I made my own fork with Jest updated. It also includes small addition of loading *.gql files with graphql-tag, but obviously, you don't need to use that :)

@fredyc/react-scripts-ts

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

3 participants