check / check (push) Successful in 4m19s
New table-driven tests in test/unit/main.test.js: humanDuration, the figure and sparkline colours either side of each latency boundary, a target's min, max, average and median over empty, all-unreachable and mixed histories, and the four health states either side of their thresholds. src/main.js exports the four names they need. package.json gains a test script, which script/frontend-test runs with the dot reporter and, if a test fails, again with the spec reporter before failing. NODE_OPTIONS picks the reporter, since yarn appends its arguments after the test files. Model: opus-5-5
26 lines
674 B
JSON
26 lines
674 B
JSON
{
|
|
"name": "netwatch",
|
|
"version": "1.0.0",
|
|
"description": "Real-time network latency monitor SPA",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"test": "node --test test/unit/*.test.js"
|
|
},
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@tailwindcss/vite": "^4.1.18",
|
|
"autoprefixer": "^10.4.23",
|
|
"eslint": "^10.12.0",
|
|
"globals": "^17.13.0",
|
|
"postcss": "^8.5.6",
|
|
"prettier": "^3.8.1",
|
|
"puppeteer-core": "25.5.0",
|
|
"tailwindcss": "^4.1.18",
|
|
"vite": "^7.3.1"
|
|
}
|
|
}
|