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
Copy file name to clipboardExpand all lines: README.md
+27
Original file line number
Diff line number
Diff line change
@@ -272,6 +272,33 @@ module.exports = {
272
272
}
273
273
```
274
274
275
+
276
+
#### Export Issue with Babel Versions Lower Than 7
277
+
278
+
Babel versions lower than 7 throw an error when trying to override the named export in the example above. (See [bug](https://github.com/kentcdodds/react-testing-library/issues/169).)
279
+
280
+
<details>
281
+
<summary>Workaround</summary>
282
+
283
+
284
+
You can use CommonJS modules instead of ES modules, which should work in Node:
0 commit comments