From 503d314e9814a3364a6b785e2ed0a07d46eeca5d Mon Sep 17 00:00:00 2001 From: Yasuaki Uechi Date: Fri, 25 Mar 2022 15:33:34 +0900 Subject: [PATCH] chore: fix test --- src/App.test.tsx | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/App.test.tsx b/src/App.test.tsx index 0800380..dc3458d 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -1,16 +1,23 @@ import { render } from '@testing-library/react'; +import { StoreProvider } from 'easy-peasy'; import 'mutationobserver-shim'; -import React, { Suspense } from 'react'; -import { BrowserRouter as Router } from 'react-router-dom'; +import React from 'react'; +import { BrowserRouter } from 'react-router-dom'; +import { ToastContainer } from 'react-toastify'; import App from './App'; +import { store } from './store'; +import { FullScreenSuspense } from './util/suspense'; it('renders welcome message', async () => { const { findByText } = render( - loading}> - - - - + + + + + + + + ); const text = await findByText('Grab a slick name for your new app'); expect(text).toBeTruthy();