Test the device table's notes and its sort order
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 90/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- javascript, node.js
- Domain
- testing
Research direction
Read scripts/devices/table.test.mjs and scripts/devices/fixtures/good-report.json, then inspect how the existing faster() helper builds reports and how renderTable() is called. Add tests for the specified notes and sort order, leaving table.mjs and the fixture unchanged. Run node --test scripts/devices/table.test.mjs and pnpm test; done when the new tests pass and each test has been shown to fail after breaking an expectation.
Written by the indexing model from the issue text.
Description
Why
scripts/devices/table.mjs builds the device table in docs/devices.md from Device lab reports, and some of its notes and its tie-breaks have no test yet. Those rows matter as reports arrive (ROADMAP.md, Now: the Device lab).
What to do
Today scripts/devices/table.test.mjs covers "battery saver on" and "paused once for heat". Add tests there, building made-up reports from scripts/devices/fixtures/good-report.json the way its faster() helper does, and passing them to renderTable():
- Notes:
device.lowRam: trueshows "low-RAM device";run.thermalPauses: 3shows "paused 3 times for heat"; a report with battery saver on, low RAM and two pauses shows all three, in that order, joined by ", ". - Sort order: with equal
speed.tokensPerSecond, rows go by phone name (maker and model) from A to Z; with the same phone and speed, the newerrun.datecomes first. - Check that each new test can fail: break one expectation on purpose, see it fail, put it back.
Done when
- The new tests pass, and
scripts/devices/table.mjsis unchanged. scripts/devices/fixtures/good-report.jsonis unchanged: other tests depend on it.
How to check
node --test scripts/devices/table.test.mjs
pnpm test
Keep in mind
- Tests only. If a test shows a real bug, open a bug report and leave
table.mjsalone in this pull request. - Made-up phones only, like the Examplecorp EX-1000 in the fixture.
- Dominant language
- TypeScript
- Stars
- 11
- Forks
- 0
- Avg merge
- 10m
- Merged PRs (30d)
- 6
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DojoCodingLabs/hermit
-
docs good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
DojoCodingLabs/hermit#73 ·
Maintainers usually reply within 1 day
-
device-lab
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
DojoCodingLabs/hermit#45 ·
Maintainers usually reply within 1 day
-
device-lab
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
DojoCodingLabs/hermit#44 ·
Maintainers usually reply within 1 day
-
device-lab
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
DojoCodingLabs/hermit#43 ·
Maintainers usually reply within 1 day
-
agent-friendly docs good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
DojoCodingLabs/hermit#39 ·
Maintainers usually reply within 1 day
All issues in DojoCodingLabs/hermit
Similar issues
-
bug zoo
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
software-mansion/runntime#151 ·
Maintainers usually reply within 4 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
sidebandstudio/clawtrate#728 ·
Maintainers usually reply within 1 day
-
enhancement github_actions help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tranquilo-art/tranquilo-app#254 ·
Maintainers usually reply within 1 day
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Maintainers usually reply within 1 day
-
bug tooling
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
endora-commerce/endora-commerce#1978 ·
Maintainers usually reply within 1 day