Skip to content

Commit 328720c

Browse files
committed
Use scoped jest-dom package
1 parent e5d4e70 commit 328720c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"@babel/plugin-transform-runtime": "^7.2.0",
5757
"@babel/preset-env": "^7.3.1",
5858
"@babel/preset-react": "^7.0.0",
59+
"@testing-library/jest-dom": "^4.2.0",
5960
"@testing-library/react": "^9.3.0",
6061
"babel-eslint": "11.0.0-beta.0",
6162
"babel-plugin-macros": "^2.2.2",
@@ -69,7 +70,6 @@
6970
"eslint-plugin-react": "^7.12.4",
7071
"husky": "^1.0.1",
7172
"jest": "^24.1.0",
72-
"jest-dom": "^3.0.1",
7373
"lint-staged": "^8.1.3",
7474
"prettier": "^1.16.4",
7575
"react": "^16.5.2",

src/__tests__/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import '@testing-library/jest-dom/extend-expect';
12
import * as React from 'react';
23
import { render } from '@testing-library/react';
34
import TextareaAutosize from '../index';
4-
import 'jest-dom/extend-expect';
55

66
describe('<TextareaAutosize />', () => {
77
it('renders default component', () => {

0 commit comments

Comments
 (0)