Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Commit ff33f3a

Browse files
committed
Fix: use loose preset
1 parent a620f38 commit ff33f3a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.babelrc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
{
2-
"presets": ["@babel/env", "@babel/react"],
3-
"plugins": [
4-
["@babel/transform-destructuring", { "loose": true }, "unique"],
5-
["@babel/proposal-class-properties", { "loose": true }, "unique"],
6-
["@babel/proposal-object-rest-spread", { "loose": true }, "unique"]
7-
]
2+
"presets": [["@babel/env", { "loose": true }], "@babel/react"]
83
}

test/Tippy.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,17 @@ describe('<Tippy />', () => {
202202

203203
test('refs are preserved on the child', done => {
204204
class App extends React.Component {
205-
refObject = React.createRef()
205+
constructor(props) {
206+
super(props)
207+
this.refObject = React.createRef()
208+
}
209+
206210
componentDidMount() {
207211
expect(this.callbackRef instanceof Element).toBe(true)
208212
expect(this.refObject.current instanceof Element).toBe(true)
209213
done()
210214
}
215+
211216
render() {
212217
return (
213218
<>

0 commit comments

Comments
 (0)