I'm using jest and enzyme to build this test, but I'm having this error when I build it.
This is the test
import React from 'react';
import { shallow, render } from 'enzyme';
import Title from './../';
describe('Title', () => {
it('should render correctly', () => {
const TitleDOM = render(<Title />);
expect(TitleDOM).toBeDefined();
});
});
Versions:
"react": "^16.0.0",
"jest": "^21.2.1",
"enzyme": "^3.2.0"
I appreciate if someone can help me.
