-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
An error occurs every time i import 'react-icons/fa'. #707
Comments
The code doesn't really match your description since your saying that you're importing from To make it work you need to edit your jest config:
This one isn't related to RTL but to jest :) |
Thanks @MatanBobi! |
Hi @MatanBobi, added you as a triager thanks to all your contributions in the issues. Keep it up! Thank you :) |
Thanks @kentcdodds, I appreciate it :) |
@testing-library/react
version: 9.3.2@testing-library/jest-dom
: 4.2.4jest
: 24.9.0node
: 12.16.2react
: 16.13.1What you did:
add line
import { ... } from react-icons/fa
What happened:
An error was indicated in the terminal as below.
Problem description:
Currently, I am practicing jest with CRA, and the error is showed only when importing 'react-icons/fa'.
However, when the list of other icons was called up, it passed the test normally without any errors.
The text was updated successfully, but these errors were encountered: