Skip to content

Commit 34d69cf

Browse files
jeetissKent C. Dodds
authored and
Kent C. Dodds
committed
don't mix require and import (#415)
1 parent 00f8b22 commit 34d69cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/act-compat.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import React from 'react'
22
import ReactDOM from 'react-dom'
33
import {reactDomSixteenPointNineIsReleased} from './react-dom-16.9.0-is-released'
4+
import * as testUtils from 'react-dom/test-utils'
45

5-
const reactAct = require('react-dom/test-utils').act
6+
const reactAct = testUtils.act
67
const actSupported = reactAct !== undefined
78

89
// act is supported react-dom@16.8.0

0 commit comments

Comments
 (0)