↧
Answer by Alex Ironside for Comparing React JSX to generated HTML with...
This it('should match rendered description with description in MockData', () => { expect(wrapper.find('.description').textContent).toEqual(description.textContent); }); it('should match rendered...
View ArticleComparing React JSX to generated HTML with Jest/Enzyme
I have a file with mock data. Here it is: export const data = { content: { // eslint-disable-next-line description: <p className={'description'}>Nico, a young Spanish man, arrives at the airport...
View Article