Skip to content

Commit

Permalink
[#64] test: signin page test code에 RecoilRoot 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyong1 committed Dec 30, 2021
1 parent e790e74 commit 7a314e7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pages/SigninPage/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ import { MemoryRouter, Router } from 'react-router-dom';

import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { RecoilRoot } from 'recoil';

import SigninPage from '.';

describe('SigninPage 테스트', () => {
const signupPageContainer = (
<MemoryRouter>
<SigninPage />
<RecoilRoot>
<SigninPage />
</RecoilRoot>
</MemoryRouter>
);

Expand All @@ -34,7 +37,9 @@ describe('SigninPage 테스트', () => {

render(
<Router history={history}>
<SigninPage />
<RecoilRoot>
<SigninPage />
</RecoilRoot>
</Router>,
);

Expand Down

0 comments on commit 7a314e7

Please sign in to comment.