Files
codewhale/web/package.json
T
HUQIANTAO dfeedca524 test(web): add unit tests for pure helper functions (#2454)
* test(web): add unit tests for pure helper functions

Add vitest configuration and tests for:
- relativeTime: time formatting (just now, minutes, hours, days, months, years)
- lastPageFromLink: GitHub Link header pagination parsing

These are the first tests for the web frontend. The test framework
(vitest) was already in package.json but had no config or test files.

* test(web): exercise real GitHub helpers

---------

Co-authored-by: Hu Qiantao <huqiantao@HudeMacBook-Air.local>
Co-authored-by: Hunter B <hmbown@gmail.com>
2026-05-31 10:21:09 -07:00

42 lines
1.1 KiB
JSON

{
"name": "codewhale-web",
"version": "0.1.0",
"private": true,
"description": "Community site for CodeWhale — codewhale.net",
"scripts": {
"dev": "node scripts/derive-facts.mjs && next dev",
"prebuild": "node scripts/derive-facts.mjs",
"build": "next build",
"start": "next start",
"test": "vitest run",
"lint": "eslint .",
"preview": "opennextjs-cloudflare preview",
"predeploy": "node scripts/check-kv-id.mjs",
"deploy": "opennextjs-cloudflare deploy",
"cf-typegen": "wrangler types"
},
"dependencies": {
"mermaid": "^11.15.0",
"next": "^15.5.18",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@opennextjs/cloudflare": "^1.19.7",
"@types/node": "^22.10.5",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"autoprefixer": "^10.4.20",
"eslint": "^9.39.4",
"eslint-config-next": "^15.5.18",
"postcss": "^8.5.14",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
"vitest": "^4.1.7",
"wrangler": "^4.86.0"
},
"overrides": {
"postcss": "^8.5.14"
}
}