Skip to content

Commit af38fc5

Browse files
committed
Merge branch 'main' into brett/improve-lint
2 parents b3407e1 + 4b0809e commit af38fc5

File tree

7 files changed

+734
-8
lines changed

7 files changed

+734
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,30 @@ jobs:
2121

2222
- name: Setup pnpm
2323
uses: pnpm/action-setup@v4
24-
with:
25-
version: 10.14.0
2624

2725
- name: Install dependencies
2826
run: pnpm install
2927

3028
- name: Lint
3129
run: pnpm run lint
30+
31+
test:
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- name: Checkout code
36+
uses: actions/checkout@v4
37+
38+
- name: Setup Node.js
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: '20'
42+
43+
- name: Setup pnpm
44+
uses: pnpm/action-setup@v4
45+
46+
- name: Install dependencies
47+
run: pnpm install
48+
49+
- name: Run tests
50+
run: pnpm test

biome.jsonc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
},
77
"files": {
88
"includes": [
9+
"**/*.config.ts",
910
"src/**/*",
1011
"!src/client/gen/types.ts",
1112
"!pnpm-lock.yaml",
12-
// Since components are vendored from coder/coder it would be a pain to have
13-
// to fix lint issues every time we update the components here by copying the
14-
// new ones in.
13+
// Since components are vendored from coder/coder it would be a pain to have
14+
// to fix lint issues every time we update the components here by copying the
15+
// new ones in.
1516
"!src/client/components/*"
1617
],
1718
"ignoreUnknown": true

package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
"lint:biome": "pnpm biome lint --error-on-warnings .",
1111
"lint:knip": "pnpm knip",
1212
"lint:circular-dep": "pnpm dpdm --no-tree --no-warning -T ./src/client/index.tsx && pnpm dpdm --no-tree --no-warning -T ./src/server/index.tsx",
13-
"preview": "vite preview"
13+
"preview": "vite preview",
14+
"test": "vitest",
15+
"test:ui": "vitest --ui",
16+
"test:run": "vitest run",
17+
"test:watch": "vitest watch"
1418
},
1519
"dependencies": {
1620
"@hono/valibot-validator": "^0.5.2",
@@ -54,6 +58,8 @@
5458
"devDependencies": {
5559
"@biomejs/biome": "^2.1.4",
5660
"@hono/vite-dev-server": "^0.19.1",
61+
"@testing-library/jest-dom": "^6.6.4",
62+
"@testing-library/react": "^16.3.0",
5763
"@types/lodash": "^4.17.17",
5864
"@types/node": "^22.15.21",
5965
"@types/react": "^19.1.2",
@@ -63,11 +69,13 @@
6369
"@vitejs/plugin-react": "^4.4.1",
6470
"autoprefixer": "^10.4.21",
6571
"dpdm": "^3.14.0",
72+
"happy-dom": "^18.0.1",
6673
"knip": "^5.62.0",
6774
"postcss": "^8.5.3",
6875
"tailwindcss": "3",
6976
"typescript": "~5.8.3",
70-
"vite": "^6.3.5"
77+
"vite": "^6.3.5",
78+
"vitest": "^3.2.4"
7179
},
72-
"packageManager": "pnpm@10.14.0"
80+
"packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748"
7381
}

0 commit comments

Comments
 (0)