I am new to react testing libraries and i am keen to use enzyme. As I went through the docs, i found that create-react-app allows to include third party testing libraries directly. I tried the following to include enzyme but got no luck. Here is what i tried but its not working in my app.test.js.
import React from 'react';
import {configure, shallow} from 'enzyme'
import AboutPage from './AboutPage';
describe('About us',() =>{
it('About us content validation', ()=>{
const wrapper = shallow(<AboutPage />);
const textHeader = <p className="value-col-heading">EMPATHY</p>;
expect(wrapper.contains(textHeader)).toEqual(true);
});
});
I am getting the following error:
Enzyme Internal server error : Enzyme expects an adapter...