vite ํ๋ก์ ํธ์์ playwright ๋ฅผ ์ค์ ํ์ ๋, typecheck ๋ฅผ ๋๋ฆฌ๋ฉด spec.tsx ์์ ํ์ ๊ด๋ จ ์๋ฌ๊ฐ ๋๋ค.
์ด ๋๋ `@playwright/test` ํจํค์ง๋ฅผ ์ค์นํด์ tsconfig์ compilerOptions.types ํ๋์ ์ถ๊ฐํด์ฃผ๋ฉด ๋๋ค.
{
"compilerOptions": {
"types": ["node", "vite/client", "jest", "@testing-library/jest-dom", "@playwright/test"],
}
}
๋ฐ์ํ
'์น (WEB) > ์๋ฌํด๊ฒฐ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| iOS Safari(WebView) z-index stacking ์ด์ (0) | 2026.04.27 |
|---|---|
| playwright ํ ์คํธ ์ ํ์ํ ๊ฒ๋ค setupํ๊ธฐ (feat. beforeMount ์ฌ์ฉ) (0) | 2024.08.28 |
| [Git] revert commit is ignored when merge branch (0) | 2024.06.26 |
| require() of ES Module someFile.js from someFile2.js not supported ์ด์ ํด๊ฒฐ (0) | 2024.06.23 |
| ์์ดํฐ ์ฒ์ง์ธ ํค๋ณด๋ ์ด์ (แแ, แแข ๋์) (2) | 2024.04.11 |
Comment