You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm run test react components with @testing-library/react in puppeteer with karma
What happened:
after update to 8.0.6 test fails with:
HeadlessChrome 77.0.3844 (Mac OS X 10.14.6) ERROR
Uncaught ReferenceError: require is not defined
at test/index.js:18318:17
ReferenceError: require is not defined
at test/index.js:18318:17
at test/index.js:40482:2
What you did:
I'm run test react components with @testing-library/react in puppeteer with karma
What happened:
after update to
8.0.6
test fails with:travis logs
with
8.0.5
tests worksProblem description:
Suggested solution:
don't use mixed imports and require
https://github.com/testing-library/react-testing-library/blob/master/src/act-compat.js#L3-L5
or
put back
try catch
blockhttps://github.com/testing-library/react-testing-library/pull/407/files#diff-eed96c92b94e7db3aebd8867fb75ce2fL8
Relevant code or config:
karma config
test
Environment
react-testing-library
version: 8.0.6react
version: 16.8.6node
version: 10npm
(oryarn
) version: 1.17The text was updated successfully, but these errors were encountered: