Skip to content

Commit 173a504

Browse files
author
David Welling
committed
fix esm/mocha bug with cleanup
1 parent 5a5e0ab commit 173a504

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

package-lock.json

+2-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@testing-library/react-hooks",
2+
"name": "@sstdev/react-hooks",
33
"version": "3.2.1",
44
"description": "Simple and complete React hooks testing utilities that encourage good testing practices.",
55
"main": "lib/index.js",

src/flush-microtasks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ try {
1616
const nodeRequire = module && module[requireString]
1717
// assuming we're in node, let's try to get node's
1818
// version of setImmediate, bypassing fake timers if any.
19-
enqueueTask = nodeRequire('timers').setImmediate
19+
enqueueTask = nodeRequire.call(module, 'timers').setImmediate
2020
} catch (_err) {
2121
// we're in a browser
2222
// we can't use regular timers because they may still be faked

0 commit comments

Comments
 (0)