1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 18:00:06 +01:00

switch to @testing-library/react

This commit is contained in:
Matthias Kretschmann 2019-05-30 22:59:07 +02:00
parent dbb642c584
commit a6cfc9cd8d
Signed by: m
GPG Key ID: 606EEEF3C479A91F
6 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
import { render } from 'react-testing-library'
import { render } from '@testing-library/react'
const testRender = component => {
it('renders without crashing', () => {

View File

@ -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",

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'