Skip to content

Commit fcdde49

Browse files
authored
Merge pull request #9 from damassi/damassi/chore/tests
chore: Add first-pass test coverage
2 parents 1eab826 + e49872a commit fcdde49

18 files changed

+2303
-3
lines changed

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Bun
17+
uses: oven-sh/setup-bun@v2
18+
with:
19+
bun-version: latest
20+
21+
- name: Install dependencies
22+
run: bun install
23+
24+
- name: Run linter
25+
run: bunx oxlint
26+
27+
- name: Run type check
28+
run: bun run type-check
29+
30+
- name: Run tests
31+
run: bun test

bun.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515
"ink-spinner": "^5.0.0",
1616
"ink-text-input": "^6.0.0",
1717
"marked": "^16.3.0",
18-
"react": "^19.1.1",
18+
"react": "^19.2.0",
1919
},
2020
"devDependencies": {
2121
"@types/bun": "latest",
2222
"@types/cors": "^2.8.19",
2323
"@types/express": "^5.0.3",
2424
"@types/react": "^19.1.16",
2525
"husky": "^9.1.7",
26+
"ink-testing-library": "^4.0.0",
2627
"lint-staged": "^16.2.3",
2728
"prettier": "^3.6.2",
2829
},
@@ -246,6 +247,8 @@
246247

247248
"ink-spinner": ["[email protected]", "", { "dependencies": { "cli-spinners": "^2.7.0" }, "peerDependencies": { "ink": ">=4.0.0", "react": ">=18.0.0" } }, "sha512-EYEasbEjkqLGyPOUc8hBJZNuC5GvXGMLu0w5gdTNskPc7Izc5vO3tdQEYnzvshucyGCBXc86ig0ujXPMWaQCdA=="],
248249

250+
"ink-testing-library": ["[email protected]", "", { "peerDependencies": { "@types/react": ">=18.0.0" }, "optionalPeers": ["@types/react"] }, "sha512-yF92kj3pmBvk7oKbSq5vEALO//o7Z9Ck/OaLNlkzXNeYdwfpxMQkSowGTFUCS5MSu9bWfSZMewGpp7bFc66D7Q=="],
251+
249252
"ink-text-input": ["[email protected]", "", { "dependencies": { "chalk": "^5.3.0", "type-fest": "^4.18.2" }, "peerDependencies": { "ink": ">=5", "react": ">=18" } }, "sha512-Fw64n7Yha5deb1rHY137zHTAbSTNelUKuB5Kkk2HACXEtwIHBCf9OH2tP/LQ9fRYTl1F0dZgbW0zPnZk6FA9Lw=="],
250253

251254
"ipaddr.js": ["[email protected]", "", {}, "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="],
@@ -346,7 +349,7 @@
346349

347350
"raw-body": ["[email protected]", "", { "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", "iconv-lite": "0.7.0", "unpipe": "1.0.0" } }, "sha512-9G8cA+tuMS75+6G/TzW8OtLzmBDMo8p1JRxN5AZ+LAp8uxGA8V8GZm4GQ4/N5QNQEnLmg6SS7wyuSmbKepiKqA=="],
348351

349-
"react": ["react@19.1.1", "", {}, "sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ=="],
352+
"react": ["react@19.2.0", "", {}, "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ=="],
350353

351354
"react-dom": ["[email protected]", "", { "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { "react": "^19.2.0" } }, "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ=="],
352355

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@types/express": "^5.0.3",
1818
"@types/react": "^19.1.16",
1919
"husky": "^9.1.7",
20+
"ink-testing-library": "^4.0.0",
2021
"lint-staged": "^16.2.3",
2122
"prettier": "^3.6.2"
2223
},
@@ -35,7 +36,7 @@
3536
"ink-spinner": "^5.0.0",
3637
"ink-text-input": "^6.0.0",
3738
"marked": "^16.3.0",
38-
"react": "^19.1.1"
39+
"react": "^19.2.0"
3940
},
4041
"lint-staged": {
4142
"*.{ts,tsx,js,jsx}": [

0 commit comments

Comments
 (0)