We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74512bb commit 66cfb82Copy full SHA for 66cfb82
src/act-compat.js
@@ -75,6 +75,8 @@ function withGlobalActEnvironment(actImplementation) {
75
// https://github.com/testing-library/react-testing-library/issues/1392
76
// https://github.com/testing-library/react-testing-library/issues/1399
77
if (
78
+ // Error.isError is pretty new addition to Node.js - may not be available in LTS versions
79
+ Error.isError &&
80
Error.isError(error) &&
81
error.toString() === 'TypeError: React.act is not a function' &&
82
process &&
0 commit comments