vite ํ”„๋กœ์ ํŠธ์—์„œ playwright ์„ค์ • ์‹œ type ๊ด€๋ จ ์˜ค๋ฅ˜ ํ•ด๊ฒฐ
์›น (WEB)/์—๋Ÿฌํ•ด๊ฒฐ 2024. 8. 6. 00:25

vite ํ”„๋กœ์ ํŠธ์—์„œ playwright ๋ฅผ ์„ค์ •ํ–ˆ์„ ๋•Œ, typecheck ๋ฅผ ๋Œ๋ฆฌ๋ฉด spec.tsx ์—์„œ ํƒ€์ž… ๊ด€๋ จ ์—๋Ÿฌ๊ฐ€ ๋‚œ๋‹ค. ์ด ๋•Œ๋Š” `@playwright/test` ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•ด์„œ tsconfig์˜ compilerOptions.types ํ•„๋“œ์— ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.{ "compilerOptions": { "types": ["node", "vite/client", "jest", "@testing-library/jest-dom", "@playwright/test"], }}