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'm starting new React project and I wan't to use bleeding edge versions of it, which is currently 16.0.0-alpha.3. When running tests, using latest enzyme and jest frameworks, I get the following error:
react-dom is an implicit dependency in order to support react@0.13-14. Please add the appropriate version to your devDependencies. See https://github.com/airbnb/enzyme#installation
at Object.<anonymous> (node_modules/enzyme/build/react-compat.js:108:11)
at Object.<anonymous> (node_modules/enzyme/build/Utils.js:65:20)
at Object.<anonymous> (node_modules/enzyme/build/MountedTraversal.js:36:14)
at Object.<anonymous> (node_modules/enzyme/build/ReactWrapper.js:35:25)
at Object.<anonymous> (node_modules/enzyme/build/index.js:6:21)
at Object.<anonymous> (src/components/Dashboard.test.js:2:15)
Error appears when writting the following import
import {shallow} from 'enzyme';
In a basic example of test case
import React from 'react';
import {shallow} from 'enzyme';
it('should render a label', () => {
const wrapper = shallow(
<label>Hello Jest!</label>
);
expect(wrapper).toMatchSnapshot();
});
My package.json looks like this (removed packages that I think are unrelated)
I'm starting new React project and I wan't to use bleeding edge versions of it, which is currently
16.0.0-alpha.3
. When running tests, using latest enzyme and jest frameworks, I get the following error:Error appears when writting the following import
import {shallow} from 'enzyme';
In a basic example of test case
My
package.json
looks like this (removed packages that I think are unrelated)And I'm running tests using command
jest --env=jsdom --watch
Any idea if I can get it working with React
16.0.0-alpha.3
?The text was updated successfully, but these errors were encountered: