From a6cfc9cd8d59d9bad99db962ef336320d18e0037 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 30 May 2019 22:59:07 +0200 Subject: [PATCH] switch to @testing-library/react --- jest/testRender.js | 2 +- package.json | 2 +- src/components/atoms/Container.test.jsx | 2 +- src/components/atoms/Exif.test.jsx | 2 +- src/components/atoms/Hamburger.test.jsx | 2 +- src/components/atoms/Input.test.jsx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/jest/testRender.js b/jest/testRender.js index 641cc90f..fe5a21fe 100644 --- a/jest/testRender.js +++ b/jest/testRender.js @@ -1,4 +1,4 @@ -import { render } from 'react-testing-library' +import { render } from '@testing-library/react' const testRender = component => { it('renders without crashing', () => { diff --git a/package.json b/package.json index 5e6176b1..4eaff0ba 100644 --- a/package.json +++ b/package.json @@ -85,6 +85,7 @@ "@babel/node": "^7.2.2", "@babel/preset-env": "^7.4.4", "@svgr/webpack": "^4.2.0", + "@testing-library/react": "^8.0.1", "babel-eslint": "^10.0.1", "babel-jest": "^24.8.0", "eslint": "^5.16.0", @@ -104,7 +105,6 @@ "pify": "^4.0.1", "prettier": "^1.17.0", "prettier-stylelint": "^0.4.2", - "react-testing-library": "^7.0.0", "stylelint": "^10.0.1", "stylelint-config-css-modules": "^1.4.0", "stylelint-config-standard": "^18.3.0", diff --git a/src/components/atoms/Container.test.jsx b/src/components/atoms/Container.test.jsx index 370ce8af..7d577082 100644 --- a/src/components/atoms/Container.test.jsx +++ b/src/components/atoms/Container.test.jsx @@ -1,5 +1,5 @@ import React from 'react' -// import { render } from 'react-testing-library' +// import { render } from '@testing-library/react' import testRender from '../../../jest/testRender' import Container from './Container' diff --git a/src/components/atoms/Exif.test.jsx b/src/components/atoms/Exif.test.jsx index b4c497af..576cf2b3 100644 --- a/src/components/atoms/Exif.test.jsx +++ b/src/components/atoms/Exif.test.jsx @@ -1,5 +1,5 @@ import React from 'react' -// import { render } from 'react-testing-library' +// import { render } from '@testing-library/react' import testRender from '../../../jest/testRender' import Exif from './Exif' diff --git a/src/components/atoms/Hamburger.test.jsx b/src/components/atoms/Hamburger.test.jsx index 9b6c61c9..a7de942d 100644 --- a/src/components/atoms/Hamburger.test.jsx +++ b/src/components/atoms/Hamburger.test.jsx @@ -1,5 +1,5 @@ import React from 'react' -// import { render } from 'react-testing-library' +// import { render } from '@testing-library/react' import testRender from '../../../jest/testRender' import Hamburger from './Hamburger' diff --git a/src/components/atoms/Input.test.jsx b/src/components/atoms/Input.test.jsx index 52126d8e..bc5cdac3 100644 --- a/src/components/atoms/Input.test.jsx +++ b/src/components/atoms/Input.test.jsx @@ -1,5 +1,5 @@ import React from 'react' -// import { render } from 'react-testing-library' +// import { render } from '@testing-library/react' import testRender from '../../../jest/testRender' import Input from './Input'