You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a common library which has React 16.13.1
I have an app in my workspace using React 16.8.1
When I run tests, Jest tries to use React 16.8.1 which is not compatible with the common library. When I look at the common/node_modules, it contains React 16.13.1 but instead Jest is moving up the tree to the root and using the older version of React.
Do all my packages need to match or can I force Common library to use react version in it's node_modules folder?
Command
yarn install && BUILD=client jest --coverage ./src
What is the expected behavior?
Common library and jest should be using the react version declared in it's package.json (16.13.1)
App library should be using React (16.8.1)
Environment
Node Version: 14.1.0
Yarn v1 Version: 1.22.4
OS and version: Lastest Mac Version
The text was updated successfully, but these errors were encountered:
Bug description
What is the current behavior?
I have a common library which has React 16.13.1
I have an app in my workspace using React 16.8.1
When I run tests, Jest tries to use React 16.8.1 which is not compatible with the common library. When I look at the common/node_modules, it contains React 16.13.1 but instead Jest is moving up the tree to the root and using the older version of React.
Do all my packages need to match or can I force Common library to use react version in it's node_modules folder?
Command
yarn install && BUILD=client jest --coverage ./src
What is the expected behavior?
Common library and jest should be using the react version declared in it's package.json (16.13.1)
App library should be using React (16.8.1)
Environment
14.1.0
1.22.4
The text was updated successfully, but these errors were encountered: