Use the default import path for jest-dom.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { render, screen } from '@testing-library/react'
|
import { render, screen } from '@testing-library/react'
|
||||||
import '@testing-library/jest-dom/extend-expect'
|
import '@testing-library/jest-dom'
|
||||||
import Linkify from './Linkify'
|
import Linkify from './Linkify'
|
||||||
|
|
||||||
const URL = 'http://www.example.com'
|
const URL = 'http://www.example.com'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// allows you to do things like:
|
// allows you to do things like:
|
||||||
// expect(element).toHaveTextContent(/react/i)
|
// expect(element).toHaveTextContent(/react/i)
|
||||||
// learn more: https://github.com/testing-library/jest-dom
|
// learn more: https://github.com/testing-library/jest-dom
|
||||||
import '@testing-library/jest-dom/extend-expect'
|
import '@testing-library/jest-dom'
|
||||||
|
|
||||||
const localStorageMock = (function () {
|
const localStorageMock = (function () {
|
||||||
let store = {}
|
let store = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user