Skip to content

Conversation

@caugner
Copy link
Contributor

@caugner caugner commented Jan 9, 2026

Description

Updates the test expecations for mozilla.org.

Motivation

Test started failing, because the score for mozilla.org changed.

Additional details

Related issues and pull requests

@caugner caugner requested a review from a team as a code owner January 9, 2026 09:02
@caugner caugner requested a review from LeoMcA January 9, 2026 09:02
@caugner caugner requested a review from mdn-bot as a code owner January 12, 2026 15:51
@caugner caugner changed the title test(scanner): update mozilla.org result test(scanner): use fixtures to test [observatory.]mozilla.org Jan 12, 2026
@caugner caugner force-pushed the update-test-expectatios branch from 874753b to 6731178 Compare January 12, 2026 15:59
@caugner caugner force-pushed the update-test-expectatios branch from 6731178 to cd807c0 Compare January 13, 2026 08:42
Copy link
Member

@LeoMcA LeoMcA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good: there's a linting issue, and I'd drop all scanning/storing of scan results in the fixture capturing.

It would be great to use https://undici.nodejs.org/#/docs/api/SnapshotAgent.md to entirely mock the requests/responses, but there were some issues with that when I tried to use it in the MCP server, which I have a half-baked PR locally to fix. It may be possible to use it this way, with a clear capture step: I was attempting to get it to auto-update any fixtures on disk which were missing. But the approach in this PR works, so no need to spend extra time to see if a different approach works.

@caugner caugner merged commit 7971d40 into main Jan 15, 2026
7 checks passed
@caugner caugner deleted the update-test-expectatios branch January 15, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants