Skip to content

Commit 9726a5c

Browse files
author
tomastudja
committed
remove testing-library legacy syntax
see testing-library/jest-dom#182
1 parent f9aaff8 commit 9726a5c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/App/TodoList/Item/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { render, fireEvent } from '@testing-library/react'
33
import Provider, { useAppState } from '@laststance/use-app-state'
4-
import '@testing-library/jest-dom/extend-expect'
4+
import '@testing-library/jest-dom'
55
import Item from './index'
66
import { AppState } from '../../../index'
77

src/App/TodoList/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { render, fireEvent } from '@testing-library/react'
33
import Provider from '@laststance/use-app-state'
4-
import '@testing-library/jest-dom/extend-expect'
4+
import '@testing-library/jest-dom'
55
import TodoList from './index'
66
import { AppState } from '../../index'
77

src/ErrorBoundary.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import { render } from '@testing-library/react'
33
import ErrorBoundary from './ErrorBoundary'
44

5-
import '@testing-library/jest-dom/extend-expect'
5+
import '@testing-library/jest-dom'
66

77
test('should render fallback page Error was thrown', () => {
88
const InvalidComponent = () => undefined

0 commit comments

Comments
 (0)