├── .dockerignore ├── .github └── workflows │ ├── playwright.yml │ └── test.yml ├── .gitignore ├── README.md ├── app ├── app.css ├── components │ ├── Counter.test.tsx │ ├── Counter.tsx │ ├── JotaiApp.test.tsx │ ├── JotaiApp.tsx │ └── useCounter.test.tsx ├── lib │ ├── math.test.ts │ ├── math.ts │ ├── request.test.ts │ └── request.ts ├── root.tsx ├── routes.ts ├── routes │ ├── home.test.tsx │ ├── home.tsx │ └── state.tsx ├── store │ └── globalCounter.ts └── welcome │ ├── logo-dark.svg │ ├── logo-light.svg │ └── welcome.tsx ├── e2e ├── index.spec.ts ├── index.spec.ts-snapshots │ └── -1-chromium-linux.png └── state-counter.spec.ts ├── package.json ├── playwright.config.ts ├── public └── favicon.ico ├── react-router.config.ts ├── test └── setup.ts ├── tsconfig.json └── vite.config.ts /.dockerignore: -------------------------------------------------------------------------------- 1 | .react-router 2 | build 3 | node_modules 4 | README.md -------------------------------------------------------------------------------- /.github/workflows/playwright.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/.github/workflows/playwright.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/README.md -------------------------------------------------------------------------------- /app/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/app.css -------------------------------------------------------------------------------- /app/components/Counter.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/components/Counter.test.tsx -------------------------------------------------------------------------------- /app/components/Counter.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/components/Counter.tsx -------------------------------------------------------------------------------- /app/components/JotaiApp.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/components/JotaiApp.test.tsx -------------------------------------------------------------------------------- /app/components/JotaiApp.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/components/JotaiApp.tsx -------------------------------------------------------------------------------- /app/components/useCounter.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/components/useCounter.test.tsx -------------------------------------------------------------------------------- /app/lib/math.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/lib/math.test.ts -------------------------------------------------------------------------------- /app/lib/math.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/lib/math.ts -------------------------------------------------------------------------------- /app/lib/request.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/lib/request.test.ts -------------------------------------------------------------------------------- /app/lib/request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/lib/request.ts -------------------------------------------------------------------------------- /app/root.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/root.tsx -------------------------------------------------------------------------------- /app/routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/routes.ts -------------------------------------------------------------------------------- /app/routes/home.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/routes/home.test.tsx -------------------------------------------------------------------------------- /app/routes/home.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/routes/home.tsx -------------------------------------------------------------------------------- /app/routes/state.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/routes/state.tsx -------------------------------------------------------------------------------- /app/store/globalCounter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/store/globalCounter.ts -------------------------------------------------------------------------------- /app/welcome/logo-dark.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/welcome/logo-dark.svg -------------------------------------------------------------------------------- /app/welcome/logo-light.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/welcome/logo-light.svg -------------------------------------------------------------------------------- /app/welcome/welcome.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/app/welcome/welcome.tsx -------------------------------------------------------------------------------- /e2e/index.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/e2e/index.spec.ts -------------------------------------------------------------------------------- /e2e/index.spec.ts-snapshots/-1-chromium-linux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/e2e/index.spec.ts-snapshots/-1-chromium-linux.png -------------------------------------------------------------------------------- /e2e/state-counter.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/e2e/state-counter.spec.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/package.json -------------------------------------------------------------------------------- /playwright.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/playwright.config.ts -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /react-router.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/react-router.config.ts -------------------------------------------------------------------------------- /test/setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/test/setup.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mizchi/react-vitest-testing-playground/HEAD/vite.config.ts --------------------------------------------------------------------------------