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
If possible, how do I need to configure it? Thank you
FAIL src/Header/index.test.js ● Test suite failed to run Cannot find module 'react' from '../../../node_modules/.pnpm/@[email protected]/node_modules/@testing-library/react/dist/act-compat.js' Require stack: /node_modules/.pnpm/@[email protected]/node_modules/@testing-library/react/dist/act-compat.js /node_modules/.pnpm/@[email protected]/node_modules/@testing-library/react/dist/index.js Header/index.test.js 20 | }) 21 | > 22 | import { screen, render } from "@testing-library/react" | ^
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> </head> <body> <div id="root"></div> </body> <script ignore src="/assets/react/16.14.0/production/react.js"></script> <script ignore src="/assets/react/16.14.0/production/react-dom.js"></script> </html>
externals: { react: "React", "react-dom": "ReactDOM", }
The text was updated successfully, but these errors were encountered:
You can still install react and react-dom as dev dependencies, this is usually what people are doing in these kind of approaches.
react
react-dom
Sorry, something went wrong.
No branches or pull requests
My project is react introduced through external links。
Can I use it without installing react or react-dom?
If possible, how do I need to configure it? Thank you
jest + @testing-library/react
error
html
webpack
The text was updated successfully, but these errors were encountered: