Skip to content

Commit

Permalink
chore: test 환경 초기 세팅 (#321)
Browse files Browse the repository at this point in the history
* chore: vitest 의존성 추가

* chore: vite-plugin-react-swc로 변경

* chore: testing-library 의존성 추가

* chore: vitest-ui 의존성 추가

* chore: vitest-eslint 설정 추가

* chore: msw 의존성 추가

* feat: render 파일 및 query 설정 변경

* fix: vitest global ts가 인식 못하는 에러 수정

* test: 예제 테스트 추가
  • Loading branch information
DongjaJ authored Jan 14, 2024
1 parent c2d417a commit d7945f1
Show file tree
Hide file tree
Showing 12 changed files with 6,410 additions and 2,782 deletions.
23 changes: 22 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,26 @@
}
}
]
}
},
"overrides": [
{
"files": ["__mocks__/**.ts", "src/**/*.spec.ts", "src/**/*.spec.tsx"],
"plugins": ["vitest"],
"extends": ["plugin:vitest/recommended"],
"rules": {
"vitest/expect-expect": "off"
},
"globals": {
"globalThis": true,
"describe": true,
"it": true,
"expect": true,
"beforeEach": true,
"afterEach": true,
"beforeAll": true,
"afterAll": true,
"vi": true
}
}
]
}
Loading

0 comments on commit d7945f1

Please sign in to comment.