Commit b8149d0
committed
test: add vitest with supply + http unit tests, wire into CI
22 tests covering the FairCoin supply schedule (premine, halvings, hard
cap, monotonicity) and the route validation helpers (parseNetwork,
parseLimit, parseOffset, parseAddress, escapeRegex). The CI workflow
runs them via bun and switches off the npm setup that didn't match the
project's bun.lock.1 parent 112d182 commit b8149d0
6 files changed
Lines changed: 282 additions & 9 deletions
File tree
- .github/workflows
- server/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
20 | 19 | | |
21 | 20 | | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
0 commit comments