-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: jest, react-testing-library setting #5
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
L2HYUNN
approved these changes
Feb 19, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
chaaerim
added a commit
that referenced
this pull request
Mar 23, 2023
* feat: input ์ปดํฌ๋ํธ ๊ตฌํ (#2) * feat: input ์ปดํฌ๋ํธ ๊ตฌํ * fix: install pnpm * refactor: ํ์ดํฌ ํ ํฐ ์ ์ฉ * feat: modal ์ปดํฌ๋ํธ ๊ตฌํ (#4) * feat: modal ์ปดํฌ๋ํธ ์์ฑ * feat: modal ์ปดํฌ๋ํธ ๊ตฌํ * refactor: type ๋ณ๊ฒฝ ๋ฐ ๋ฆฌ๋ทฐ ๋ฐ์ * refactor: modal interface ์ ๊ฑฐ * feat: icon ์ปดํฌ๋ํธ ๊ตฌํ (#3) * feat: svg ์ ์ฅ * feat: icon ์ปดํฌ๋ํธ ๊ตฌํ * refactor: icon ๋ฐ๋ก export * refactor: span ํ๊ทธ๋ก ๋ณ๊ฒฝ * refactor: icon type * feat: button ์ปดํฌ๋ํธ ๊ตฌํ (#6) * fix: rem์ ์ํ html fontSize ์์ * refactor: text ์ปดํฌ๋ํธ type ์ ์ธ ์์น ๋ณ๊ฒฝ * style: ๋๋ฝ ๋ฐ ๋ณ๊ฒฝ๋ theme ์ถ๊ฐ * feat(button): button ์ปดํฌ๋ํธ ์ถ๊ฐ * chore(button): button ์ปดํฌ๋ํธ ์์ ์ถ๊ฐ * refactor(text): text ์ปดํฌ๋ํธ ์คํ์ผ ํ์ ๋ช ๋ณ๊ฒฝ * feat: jest, react-testing-library setting (#5) * feat: jest, react-testing-library setting * chore: paths ์์ * fix: fix conflict * feat: select ์ปดํฌ๋ํธ ๊ตฌํ (#7) * feat: mount, update ๊ด๋ จ hooks ์ถ๊ฐ * feat: void callback type ์ถ๊ฐ * feat: select ์ปดํฌ๋ํธ ์ถ๊ฐ * feat: select ์ปดํฌ๋ํธ ์์ ์ฝ๋ ์ถ๊ฐ * chore: local pnpm ํจํค์ง ์ ๊ฑฐ * style: select ์ปดํฌ๋ํธ margin top ์ถ๊ฐ * feat: header ์ปดํฌ๋ํธ ๊ตฌํ (#9) * feat: sign up ๋ ์ด์์๊ณผ ๋ก์ง ๊ตฌํ (#10) * feat: ํ์๊ฐ์ ๋ ์ด์์ ๋ฐ ๋ก์ง ์์ * feat: sign up validation check ๋ก์ง ์ถ๊ฐ * feat: signUp ์ฑ๊ณต์ ๋ชจ๋ฌ์ฐฝ ๋ณด์ฌ์ฃผ๊ธฐ * chore: console ์ญ์ ๋ฐ ์ฃผ์ ๋ฌ๊ธฐ * feat: ๋น๋ฐ๋ฒํธ ์ต๋ ๊ธธ์ด 20์๋ก ์ ํ * refactor: button ์ปดํฌ๋ํธ ๋ฆฌํฉํ ๋ง (#11) * style: reset css ๋ฒํผ disabled cursor ์กฐ๊ฑด ์ถ๊ฐ * style: theme ๋์์ธ ์์คํ ๋ณ๊ฒฝ ์ ์ฉ * refactor: button ์ปดํฌ๋ํธ ๋ฆฌํฉํ ๋ง * feat: toast component ๊ตฌํ (#14) * feat: login (#13) * feat: ๋ก๊ทธ์ธ, ํ์๊ฐ์ ๋ ์ด์์ ๋ฐ ๋ก๊ทธ์ธ ๋ก์ง ๊ตฌํ * feat: axios ์๋ฌ ์ปค์คํ * chore: ์ฃผ์ ์ถ๊ฐ * feat: axios request interceptors ์ถ๊ฐ * feat: ๋ต๋ณ Bubble ์ปดํฌ๋ํธ ๊ตฌํ (#16) * feat: ๋ต๋ณ Bubble ์ปดํฌ๋ํธ ๊ตฌํ * chore: ํด๋ rename * refactor: ์ค๋ณต ์ฝ๋ ์ ๊ฑฐ * feat: user answer bubble ์ปดํฌ๋ํธ ๊ตฌํ (#17) * feat: input bubble ์ปดํฌ๋ํธ ๊ตฌํ (#18) * refactor: toast design system ์ ์ฉ (#21) * setting: jest eslint ์ค์ ์ถ๊ฐ ๋ฐ ์ ํธ ํ์ผ ์ถ๊ฐ (#19) * chore: jest ๊ด๋ จ ์ฌ์ฉํ์ง ์๋ ํจํค์ง ์ ๊ฑฐ * chore: ์ง์์ ์ผ๋ก ๋ฌธ์ ๊ฐ ์๊ธฐ๋ Home ํ ์คํธ ์ฝ๋ ์ ๊ฑฐ * chore: main์ button์์ ๋ฐ์ํ๋ ๋ฌธ์ ํด๊ฒฐ * feat: jest ๊ด๋ จ eslint plugins ์ถ๊ฐ * feat: jest eslint plugin ์ค์ ์ ์ฉ * chore: testing library ํจํค์ง ์ฌ์ค์น * fix: jest-dom eslint ์ค์ ์คํ์ ์์ * fix: jest ์ค์ ๋ณ๊ฒฝ * feat: ์ปค์คํ ๋๋๋ฅผ ์ํ testUtils ์ถ๊ฐ * feat: button ๋๋๋ง ๋ฐ ์๋ ํ ์คํธ ์ถ๊ฐ * chore: ๋ถํ์ํ export ์ ๊ฑฐ * fix: button test describe ์ด๋ฆ ๋ณ๊ฒฝ * setting: test CI ๋ฐ codecov ๋ถ์ฐฉ (#20) * feat: test ci ์ถ๊ฐ * feat: codecov ์ค์ ๋ฐ CI ์ถ๊ฐ * fix: ์คํฌ๋ฆฝํธ ์คํ์ ์์ * feat: ๋ก๊ทธ์ธ ๋ก์ง ์์ ์๋ฃ ๋ฐ ๋น๋ฐ๋ฒํธ ์ฌ์ค์ ๋ ์ด์์ (#22) * feat: ๋ก๊ทธ์ธ ๋ก์ง ์์ ์๋ฃ ๋ฐ ๋น๋ฐ๋ฒํธ ์ฌ์ค์ ๋ ์ด์์ * refactor: console ์ญ์ * refactor: ํ๊ฒฝ๋ณ์ ์ ์ฉ * feat: ๋น๋ฐ๋ฒํธ ์ฌ์ค์ api fetching (#23) * feat: category ํ์ด์ง ๊ตฌํ (#24) * feat: useBackGroundColor hook ์ถ๊ฐ * feat: layout์ background color ์ ์ฉ * refactor: ๊ณตํต hook ํด๋ ๋ถ๋ฆฌ * fix: axios request interceptors ํค๋ Bearer ์ถ๊ฐ * feat(hooks): useMounted hook ์ถ๊ฐ * feat: client suspense ์ถ๊ฐ * feat: client suspense ์ ์ฉ * feat: ๋ก๊ทธ์ธ ์ฑ๊ณต ์ดํ ์นดํ ๊ณ ๋ฆฌ ํ์ด์ง๋ก ๋ฆฌ๋ค์ด๋ ํธ ์ถ๊ฐ * feat: main ์นดํ ๊ณ ๋ฆฌ ํธ์ถ api ๋ก์ง ์ถ๊ฐ * fix: select ์ปดํฌ๋ํธ๊ฐ undefined ๋ํ ์ฃผ์ ๋ฐ์ ์ ์๊ฒ ์ค์ ์ถ๊ฐ * feat: bottom fixed button ์ถ๊ฐ * feat: category ํ์ด์ง ์ถ๊ฐ * feat: production env ํ์ผ git ignore ์ถ๊ฐ * feat: dynamic category ํ์ด์ง ์ถ๊ฐ * feat: single bottom fixed button ํ ์คํธ ์ถ๊ฐ * feat: category detail ํ์ด์ง ๊ตฌํ (#25) * feat: category ํ์ด์ง getStaticProps ๋ฆฌํด ํ์ ์ถ๊ฐ * fix: suspense ๋ฌธ์ ์์ ์กฐ์น * feat: mid category api ๊ด๋ จ ๋ก์ง ์ถ๊ฐ * feat: next ์ธ๋ถ ์ด๋ฏธ์ง ์ฌ์ฉ ์ค์ ์ถ๊ฐ * feat: category detail ํ์ด์ง ์ถ๊ฐ * fix: next config image hostname ๋ณ๊ฒฝ * feat: question ํ์ด์ง ๊ตฌํ (#26) * feat: question ๊ด๋ จ api ๋ก์ง ์ถ๊ฐ ๋ฐ ์ผ๋ถ ๋ค์ด๋ฐ ์์ * fix: ๋ณ๊ฒฝ๋ api ์ด๋ฆ ์ ์ฉ * fix: question dynamic route path ๋ณ๊ฒฝ * refactor: useBackGroundColor route ๋ก์ง ๊ฐ์ * feat: question ํ์ด์ง ์ถ๊ฐ * fix: next config s3 url ์์ * refactor: early return์ ํตํ ํ์ undefined ๋ฌธ์ ๊ฐ์ * refactor: category ํ์ด์ง early return์ ํตํ ํ์ undefined ๋ฌธ์ ๊ฐ์ * feat: onboarding page ์์ ์๋ฃ (#27) * feat: chip component ๊ตฌํ (#28) * feat: chip component ๊ตฌํ * chore: ๊ณต๋ฐฑ ์ญ์ * test: Icon ์ปดํฌ๋ํธ ํ ์คํธ ์ถ๊ฐ (#30) * feat: jest svg ๊ด๋ จ ์ค์ ์์ ๋ฐ ์ถ๊ฐ * refactor: icon import ๋ฐฉ์ ๋ณ๊ฒฝ * test: icon ํ ์คํธ ์ถ๊ฐ * feat: question answer ๊ธฐ๋ฅ ๊ตฌํ (#31) * feat: main ์นดํ ๊ณ ๋ฆฌ ํธ์ถ api ๋ก์ง ์ถ๊ฐ * feat: mid category api ๊ด๋ จ ๋ก์ง ์ถ๊ฐ * feat: question ๊ด๋ จ api ๋ก์ง ์ถ๊ฐ ๋ฐ ์ผ๋ถ ๋ค์ด๋ฐ ์์ * feat: question ํ์ด์ง ์ถ๊ฐ * feat: question answer ๊ด๋ จ api ๋ก์ง ์ถ๊ฐ * feat: double bottom fixed button ์ถ๊ฐ * feat: question answer ๋ก์ง ์ถ๊ฐ * chore: ๋ถํ์ํ ๋ณ๊ฒฝ ์ ๊ฑฐ * feat: token refetch ๋ก์ง ์ถ๊ฐ (#32) * feat: analytics tools ์ถ๊ฐ (#34) * feat: google analytics ์ค์ ์ถ๊ฐ * feat: hotjar ์ค์ ์ถ๊ฐ * feat: mypage ์์ ์๋ฃ (#33) * feat: mypage ์์ ์๋ฃ * chore: tsconfig ์์ * fix: ์คํ ์์ * fix: querykey ๋ฐ๋ ๊ฒ ์์ * feat: 404page ์์ (#35) * feat: 404 page ๊ตฌํ * chore: fix lint error * setting: playwright ์ค์ ๋ฐ ์์ ์ถ๊ฐ (#36) * feat: playwright ์ค์ ๋ฐ ์์ ์ถ๊ฐ * feat: playwright eslint plugin ์ถ๊ฐ ๋ฐ ์ ์ฉ * chore: jest test ignore pattern ์ถ๊ฐ * chore: response.d.ts lint ์ ์ฉ * test: ๋น๋ก๊ทธ์ธ์ ํํ๋ฉด์ ๋ํ e2e ํ ์คํธ ์ถ๊ฐ * feat: question ํ์ด์ง ๊ตฌํ v2 (#37) * refactor: api base url ์์ ๋ฐ deprecated api ๋ช ์ * refactor: deprecated response ๋ช ์ * refactor: ์ง๋ฌธ ์์ฑ api v2 ์ถ๊ฐ ๋ฐ ์ ์ฉ * feat: ์ง๋ฌธ ๋ต๋ณ ์ ์ฅ api ๋ฐ mutation hook ์ถ๊ฐ * feat: ์ง๋ฌธ api v2 ์ถ๊ฐ ๋ฐ query hook ์ถ๊ฐ * refactor: question api ๋ณ๊ฒฝ์ ์ถ๊ฐ ๋ฐ ์ ์ฉ * feat: question ์ปดํฌ๋ํธ ์ถ๊ฐ * feat: questions ํ์ด์ง ๊ตฌํ * refactor: AIBubble ๋ณ๊ฒฝ๋ ๋์์ธ ์ ์ฉ (#39) * refactor: api base url ์์ ๋ฐ deprecated api ๋ช ์ * feat: ์ง๋ฌธ api v2 ์ถ๊ฐ ๋ฐ query hook ์ถ๊ฐ * refactor: question api ๋ณ๊ฒฝ์ ์ถ๊ฐ ๋ฐ ์ ์ฉ * refactor: bubble์ chip ์ปดํฌ๋ํธ ์ ์ฉ * refactor: ๋ณ๊ฒฝ๋ AI ๋ต๋ณ ํ ์คํธ ๋์์ธ ์ ์ฉ * feat: ํค๋ ๋ณ๊ฒฝ ๋ฐ favicon, og tag ์ ์ฉ (#40) * feat: ์นดํ ๊ณ ๋ฆฌ ํค๋ ์ ์ฉ ๋ฐ ๋ค๋ก๊ฐ๊ธฐ ๋ฒํผ ํด๋ฆญ์ ๋ชจ๋ฌ overlay * feat: right icon ์ ๋ณ๊ฒฝ ๊ฐ๋ฅํ๊ฒ ์์ * feat: favicon, og-tag ์ ์ฉ * feat: responsive ๋์์ธ ์ ์ฉ (#41) * feat: desktop media query theme ์ถ๊ฐ * feat: ๋์์ธ์ ๋ฐ๋ฅธ desktop ๋ฐ์ํ ์ ์ฉ * setting: auto release tag action ์ถ๊ฐ (#42) * chore: ๋ฐฐํฌ ๋ฒ์ ๋ช ์ * feat: auto release tag action ์ถ๊ฐ * hotfix: Release 1.0.0 deploy error ํด๊ฒฐ (#44) * fix: ๋ณ๊ฒฝ๋ s3 url ์ ์ฉ * fix: useShowLoginModal prop undefined ์๋ฌ ์์ ์กฐ์น * feat: useModal Dimmer ๋ฐ์ํ ์ ์ฉ * fix: useQuestionAnswer hook api import ์๋ฌ ํด๊ฒฐ * fix: useModal import warning ํด๊ฒฐ * feat: title ,description seo ์ถ๊ฐ * fix: page api ์บ์ฑ์ผ๋ก ์ธํด ์ด์ ์ง๋ฌธ์ด ์ ์ ๋ณด์ด๋ ๋ฌธ์ ํด๊ฒฐ --------- Co-authored-by: chaerim kim <89721027+chaaerim@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
๐ ์์ ๋ด์ฉ
โ๏ธ ์์ธ ์ค๋ช
ํ ์คํ ํ์ค ๋ ์ฐธ๊ณ ๊ฐ ๋ ์ ์์ ๊ฒ ๊ฐ์ ์ธํ ํ๋ฉด์ ๋ง๋ค์๋ test ํด๋์ ํ์ผ์ ํจ๊ป push ํฉ๋๋ค. (์ญ์ ํ์ ๋ ๋ฌด๋ฐฉํฉ๋๋ค. )
package.json์ test ์คํฌ๋ฆฝํธ์์
passWithNoTest
๋ ํด๋น ํ์ผ์ด ์์ ๋ test๋ฅผ ํต๊ณผ์ํค๋ ์ต์ ์ ๋๋ค.pnpm test
์คํฌ๋ฆฝํธ๋ฅผ ์ฌ์ฉํ์ฌ ํ ์คํ ์ ์งํํ ์ ์์ต๋๋ค.์ ๊ฐ ์์ฑํ ํ ์คํธ ๋ด์ฉ์ ํด๋น ํ์ผ์ Home์ด๋ผ๋ ํ ์คํธ๊ฐ ์๋์ง ๊ฒ์ฌ๋ฅผ ์งํํ๊ณ ์ฑ๊ณต์
toMatchSnapshot()
๋ฉ์๋๋ฅผ ์ด์ฉํ์ฌ ์ค๋ ์ท ํ์ผ์ ๋ง๋๋ ํ ์คํธ์ ๋๋ค.์์๋ก ๋ฃจํธ์ tests ํด๋๋ฅผ ์์ฑํด๋์๋๋ฐ test๋ฅผ ์งํํ ๋๋ ํ ๋ฆฌ๋ ๋ ผ์ํ์ ์ถํ ๋ณ๊ฒฝํ์ฌ๋ ์ข์ ๊ฒ ๊ฐ์ต๋๋ค.
๐ท ์คํฌ๋ฆฐ์ท
๐ ์ฐธ๊ณ ์๋ฃ
jest, react testing library ํ๊ฒฝ ์ธํ ์ ์ฐธ๊ณ
https://velog.io/@leehyunho2001/Next.js-TypeScript-ํ๊ฒฝ์์-Jest์-testing-library-์ฌ์ฉํ๊ธฐ
์ค๋ ์ท ํ ์คํ ๊ด๋ จ ๋ด์ฉ
https://www.daleseo.com/jest-snapshot/