Repository navigation
test(night): cover the bots' news lines and their types (#218) - #242
Merged
juancguerrerodev merged 16 commits intoDec 6, 2026
Merged
juancguerrerodev merged 16 commits into
juancguerrerodev merged 16 commits into
Conversation
10 of 16 tasks
Contributor
|
One fix before this can merge: |
Contributor
Author
|
Fixed: the test now asserts the bot's actual quoted words ("Bajó el vuelo.") do not appear in any line. Mutation-checked by temporarily leaking the quote into a line, which fails only this test. The pull request template is filled in too. |
juancguerrerodev
force-pushed
the
test/night-bot-news-218
branch
from
December 6, 2026 07:57
240f049 to
336dab1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #218
packages/night/src/bot-news.tsbuilds the lines Hermit's report and the morning briefing show for each bot (#100), butbotNewsLinesandisBotNewshad no test of their own, so a change in their order or a renamed copy key would gounnoticed.
What this PR does
packages/night/test/bot-news.test.ts(Vitest, like the other files inpackages/night/test), importing from../src/bot-news.ts. Tests only:bot-news.tsis unchanged.Tests
packages/copy/locales/en.jsonandes-419.json, and its{placeholders}match the values given (plus
{time}when the line hasat).How to check
Keep in mind
bot-news.ts.Pull request template
What and why
Closes #218.
Adds the missing tests for the lines a bot's news gives the report and the briefing.
Vision fit
Principle 3, the model proposes, code decides: the news lines are code's words, and a bot's own words stay data, shown only as a quote.
Non-negotiables
Checklist
acceptedproposal.pnpm check:privacy,pnpm typecheck,pnpm lint,pnpm testandnode scripts/guard/check.mjs --patterns scripts/guard/patterns.txt. Gate note: privacy and guard pass on this checkout today; the rest was run per package as listed under AI agents, not as one root gate on this Windows machine, where unrelated pre-existing failures appear in the site badges, the devices table and mobile source scans.packages/copy, in es-419 and en, with matching keys and placeholders, and no em or en dashes.Model path
packages/model,agent,skillsoreval, the prompt, the router, tool descriptions, normalizers, examples or the model file.Screenshots
New dependencies and network calls
None. No new dependency and no new network call.
AI agents
What was run: pnpm --filter @hermit/night exec vitest run test/bot-news.test.ts (9/9) after the fix; before it, the full night suite (94/94 at the time), typecheck and eslint.