check / check (push) Successful in 1m54s
Each target check now times out after 80% of the refresh interval, 24 seconds at 30 seconds, where it was capped at 3 seconds, so slow, far targets are recorded with their real time. A round asked for while the last one's checks are still waiting, after an interval change or by the recovery probe, is skipped, so rounds never overlap; the recovery probe starts no new checks while its last ones wait. The frontend has its first unit tests, run by script/frontend-test with Node's built-in test runner. index.html now links src/styles.css, which src/main.js imported, since Node cannot import CSS. Model: opus-5-5
16 lines
349 B
Bash
Executable File
16 lines
349 B
Bash
Executable File
#!/bin/sh
|
|
# script/frontend-test: run the frontend test suite: the unit tests in
|
|
# test/unit/ with Node's built-in test runner, then the production
|
|
# build, which fails on broken code.
|
|
set -eu
|
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
|
|
|
|
main() {
|
|
cd "$ROOT"
|
|
timeout 30 node --test test/unit/*.test.js
|
|
timeout 30 yarn build
|
|
}
|
|
|
|
main "$@"
|