Skip to content

Commit ec1f163

Browse files
committed
fix: tests and lint
1 parent eec40d1 commit ec1f163

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,15 @@ This project includes two GitHub Actions workflows:
9191
### PR Checks (`.github/workflows/pr-checks.yml`)
9292

9393
Runs automatically on pull requests to `main`:
94+
9495
- **Lint** - Checks code style and formatting (`pnpm lint`)
9596
- **Test** - Runs all tests (`pnpm test`)
9697
- **Type Check** - Validates TypeScript types for both packages
9798

9899
### Deploy (`.github/workflows/deploy.yml`)
99100

100101
Runs automatically on push to `main`:
102+
101103
- **Deploy Worker** - Deploys backend worker to Cloudflare
102104
- **Deploy Web** - Deploys frontend worker to Cloudflare (after worker deploys)
103105

packages/web/src/routes/demo/start.ssr.spa-mode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const Route = createFileRoute('/demo/start/ssr/spa-mode')({
88
});
99

1010
function RouteComponent() {
11-
const [punkSongs, setPunkSongs] = useState<Awaited<ReturnType<typeof getPunkSongs>>>([]);
11+
const [punkSongs, setPunkSongs] = useState<Awaited<ReturnType<typeof getPunkSongs>> | []>([]);
1212

1313
useEffect(() => {
1414
getPunkSongs().then(setPunkSongs);

packages/web/vitest.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from 'vitest/config';
2+
import tsconfigPaths from 'vite-tsconfig-paths';
3+
4+
export default defineConfig({
5+
plugins: [tsconfigPaths()],
6+
test: {
7+
environment: 'jsdom',
8+
},
9+
});

0 commit comments

Comments
 (0)