feat(v027): SettingsPage scaffold — 4 섹션 placeholder + 돌아가기
v027 plan Task 7. zustand store 의 showSettings 를 사용하는 첫 컴포넌트. 4 섹션 (AI 제공자/자동 실행/백업·복원/정보) placeholder 와 헤더 + 돌아가기 버튼만. 실 콘텐츠는 후속 Task 8-11 에서 채움. 테스트 인프라 동시 추가 (v027 의 첫 React 컴포넌트 테스트): - @testing-library/react + @testing-library/jest-dom + jsdom devDep 추가 - vitest.config: plugin-react 적용, include 에 .test.tsx 포함 - 환경 분리는 per-file `// @vitest-environment jsdom` directive 로 처리 (vitest 4.x 에서 environmentMatchGlobs 미지원 — 기존 .ts 단위 테스트는 node env 유지)
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { defineConfig } from 'vitest/config';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { resolve } from 'node:path';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
test: {
|
||||
environment: 'node',
|
||||
globals: false,
|
||||
include: ['tests/unit/**/*.test.ts'],
|
||||
include: ['tests/unit/**/*.test.ts', 'tests/unit/**/*.test.tsx'],
|
||||
exclude: ['tests/integration/**', 'tests/e2e/**'],
|
||||
coverage: { reporter: ['text', 'html'] }
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user