Repository navigation
test(server): Resolves the remaining server-side gaps from #125. - #256
Merged
gkhngyk merged 2 commits intoJun 16, 2026
Merged
Conversation
…e manual scripts, add CI step
Pallavikumarimdb
force-pushed
the
issue-125-server-remaining-work
branch
from
June 15, 2026 12:47
95b5aca to
5744c56
Compare
Pallavikumarimdb
marked this pull request as ready for review
June 15, 2026 12:56
This was referenced Jun 23, 2026
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.
Summary
Resolves the remaining server-side gaps from #125. Test infrastructure (#242, #243) was already merged; this branch finishes the job.
Changes
npm run testto the server job in.github/workflows/ci.ymlso tests run on every PR and push tomainserver/src/lib/cloro-scraper.test.js- 15 tests coveringparseScraperResponseacrosschatgpt-shopping,google-aio,google-aimode, and all other providers (text fallbacks, citation normalization, model defaults, shopping_cards handling, missing-key throws)server/src/lib/cloro-webhook-verify.test.js- 7 tests for HMAC-SHA256 signature verification (valid, missing headers, invalid timestamp, stale, mismatch,v1=prefix stripping)server/src/lib/dataforseo-codes.test.js- 10 tests for region/language code mapping (case-insensitivity, unknown/empty input, supported set)server/src/lib/shopping-cards.test.js- 15 tests for card parsers, normalization, and brand/competitor matching (Perplexity, AI Mode, Copilot shapes; edge cases)server/src/lib/tracking-pipeline.test.js- 6 mocked tests ported fromtest-tracking.js, validating mention/citation/visibility scoring end-to-endserver/src/lib/volumes-pipeline.test.js- 6 mocked tests ported fromtest-volumes.js, validating DataForSEO fetch flow, AI volume calculation, region coding, and model resolutionserver/src/test-tracking.jsandserver/src/test-volumes.js- their logic is now covered by the automated suiteRelated issue
Closes #125
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsChecklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)