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:
parent
dbb642c584
commit
a6cfc9cd8d
@ -1,4 +1,4 @@
|
||||
import { render } from 'react-testing-library'
|
||||
import { render } from '@testing-library/react'
|
||||
|
||||
const testRender = component => {
|
||||
it('renders without crashing', () => {
|
||||
|
@ -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",
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user