We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whenever I have this package imported in a file, Jest gives me the following error message for that file:
SyntaxError: Unexpected identifier import React, { Component } from "react"; ^^^^^
I tried adding it as a transform ignore pattern, but it didn't work.
Any idea how to fix t?
The text was updated successfully, but these errors were encountered:
I am experiencing the same issue.
Sorry, something went wrong.
I managed to temporarily solve the issue by having the following in my jest-setup.js file:
jest-setup.js
import React from 'react'; import { configure } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; configure({ adapter: new Adapter() }); jest.mock('react-crossfade-image', () => <div />);
This isn't an ideal solution, but it works for the time being.
No branches or pull requests
Whenever I have this package imported in a file, Jest gives me the following error message for that file:
I tried adding it as a transform ignore pattern, but it didn't work.
Any idea how to fix t?
The text was updated successfully, but these errors were encountered: