Skip to content

Commit 54f83f7

Browse files
stephendolanclaude
andcommitted
test: add vitest and display module tests
- Install vitest for testing - Export formatEstimate, isTaskOverdue, formatTags for testing - Add tests for display helper functions (15 tests) - Update CI and release workflows to run tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 138ec0e commit 54f83f7

File tree

6 files changed

+1566
-8
lines changed

6 files changed

+1566
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [main]
88

99
jobs:
10-
check:
10+
test:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v5
@@ -20,4 +20,5 @@ jobs:
2020
- run: npm ci
2121
- run: npm run typecheck
2222
- run: npm run lint
23+
- run: npm test
2324
- run: npm run build

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- 'v*'
77

88
jobs:
9-
check:
9+
test:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v5
@@ -19,9 +19,10 @@ jobs:
1919
- run: npm ci
2020
- run: npm run typecheck
2121
- run: npm run lint
22+
- run: npm test
2223

2324
publish:
24-
needs: check
25+
needs: test
2526
runs-on: ubuntu-latest
2627
permissions:
2728
contents: write

0 commit comments

Comments
 (0)