Public: anyone can read this; the crew can change it.
A test pins the home's KPI words: spend, backups, speed and visitors read right at zero, at their edges and with no data #6906
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
src/flow/kpi_words.ts words every KPI tile on the owner's home (
trendText,spendValue,spendFull,backupOverdue,backupAge,speedWords,usersValue,visitorsValue,visitorsNote,reactNote,buildersValue). None is named in a test.Done:
NaN,undefined,Infinityor-0. Money is two decimals, and a count of one is singular.trendTextsays up, down and flat in words, not only in arrows.This is a new test file only. Change code only where the test finds a hole, and say so in the pull. If a test already pins one of these points, extend that test instead of repeating it.
Files: test/kpi-words.test.ts
Before pushing:
bun x tsc --noEmitand the test you add. Tests passnowin and never read the wall clock.