반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- csr
- Cypress
- vue3
- msw
- custom command
- vue-cli
- 비동기
- 선택자
- typeScript
- Testing
- CloudFlare
- devtools
- import.meta.env
- ts error
- n8n
- caching
- svelte
- ViTE
- SSR
- TLS
- QUIC
- aws
- web vital
- e2e
- n8n 기초
- JavaScript
- http3
- vue
- CSS
- api test
Archives
- Today
- Total
Develop Note by J.S.
[Typescript] Cypress Command 등록 시 TS2345 Error 본문
아래와 같은 TS2345 Error 발생 시

1. cypress/global.d.ts 생성
// ./cypress/global.d.ts
declare namespace Cypress {
interface Chainable {
dataCy(dataTestAttribute: string): Chainable<JQuery<HTMLElement>>
}
}
2. tsconfig.json
// tsconfig.json cypress 경로 추가
"include": ["cypress/**/*.ts" ,"src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"],반응형
'Language > Typescript' 카테고리의 다른 글
| [Typescript] Enum과 Union Type (0) | 2024.01.30 |
|---|---|
| [Typescript] TS1484 VerbatimModuleSyntax (0) | 2023.07.17 |
| [Typescript] Vite import.meta TS2339 Error (0) | 2023.07.10 |
| [Typescript] Vite Init TS2307 Error (0) | 2023.07.10 |
| [Typscript] tsconfig.json (0) | 2023.07.05 |