-
[Testing] ๋ฆฌ์กํธ ์ ํ๋ฆฌ์ผ์ด์
ํ
์คํธ ํ๊ฒฝ ๊ตฌ์ถํ๊ธฐ (Vite, TypeScript, React)
๋ฆฌ์กํธ ์ ํ๋ฆฌ์ผ์ด์
ํ
์คํธ ํ๊ฒฝ ๊ตฌ์ถํ๊ธฐ (Vite, TypeScript, React)๋ค์ด๊ฐ๋ฉฐVite, TypeScript, React๋ฅผ ์ด์ฉํ์ฌ ํ๋ก์ ํธ ํ
ํ๋ฆฟ์ ์์ฑํ๊ณ , ๋ฆฌ์กํธ ์ ํ๋ฆฌ์ผ์ด์
ํ
์คํธ ํ๊ฒฝ์ ๊ตฌ์ถํ๋ ๋ฐฉ๋ฒ์ ์ ๋ฆฌํด๋ณธ๋ค. ๋ฐฉ๋ฒ1๏ธโฃ ํ๋ก์ ํธ ์์ฑํ๊ธฐVite ํ๋ก์ ํธ ์ค์ ํ๊ธฐํ๋ก์ ํธ ์ด๋ฆ์ ์ค์ ํ๋ค.@React@์ @TypeScript@๋ฅผ ์ ํํ๋ค.$ npm create vite@latest ์์กด์ฑ ์ค์นํ๊ธฐ์๋์ ๋ช
๋ น์ ์คํํ์ฌ ํจํค์ง๋ฅผ ์ค์นํ ํ, ์คํํด๋ณธ๋ค.$ npm install$ npm run dev 2๏ธโฃ Vite ํ๊ฒฝ์์ ํ
์คํธ ์ค์ ํ๊ธฐVitest ์ค์นํ๊ธฐ์๋์ ๋ช
๋ น์ ์คํํ์ฌ Vitest๋ฅผ ์ค์นํ๋ค.$ npm install -D vitest VitestVite ๊ธฐ๋ฐ์ ๋น ๋ฅด๊ณ ๊ฐ..
1
2025.02.15