From 9726a5c9b8bc02dc1b7a659cd4954238b8dccac8 Mon Sep 17 00:00:00 2001 From: tomastudja Date: Tue, 18 Feb 2020 22:29:22 +0900 Subject: [PATCH] remove testing-library legacy syntax see https://github.com/testing-library/jest-dom/pull/182 --- src/App/TodoList/Item/index.test.tsx | 2 +- src/App/TodoList/index.test.tsx | 2 +- src/ErrorBoundary.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App/TodoList/Item/index.test.tsx b/src/App/TodoList/Item/index.test.tsx index b48bce3..b93a6b9 100644 --- a/src/App/TodoList/Item/index.test.tsx +++ b/src/App/TodoList/Item/index.test.tsx @@ -1,7 +1,7 @@ import React from 'react' import { render, fireEvent } from '@testing-library/react' import Provider, { useAppState } from '@laststance/use-app-state' -import '@testing-library/jest-dom/extend-expect' +import '@testing-library/jest-dom' import Item from './index' import { AppState } from '../../../index' diff --git a/src/App/TodoList/index.test.tsx b/src/App/TodoList/index.test.tsx index dd6656a..7b23b03 100644 --- a/src/App/TodoList/index.test.tsx +++ b/src/App/TodoList/index.test.tsx @@ -1,7 +1,7 @@ import React from 'react' import { render, fireEvent } from '@testing-library/react' import Provider from '@laststance/use-app-state' -import '@testing-library/jest-dom/extend-expect' +import '@testing-library/jest-dom' import TodoList from './index' import { AppState } from '../../index' diff --git a/src/ErrorBoundary.test.js b/src/ErrorBoundary.test.js index 109bbe8..55d44fc 100644 --- a/src/ErrorBoundary.test.js +++ b/src/ErrorBoundary.test.js @@ -2,7 +2,7 @@ import React from 'react' import { render } from '@testing-library/react' import ErrorBoundary from './ErrorBoundary' -import '@testing-library/jest-dom/extend-expect' +import '@testing-library/jest-dom' test('should render fallback page Error was thrown', () => { const InvalidComponent = () => undefined