Skip to content

test: mock astro:content for getFallbackRemixData test - #1425

Merged
ksen0 merged 13 commits into
processing:v1from
Ryan-z-Feng-ccsf:ryan
Jul 28, 2026
Merged

test: mock astro:content for getFallbackRemixData test#1425
ksen0 merged 13 commits into
processing:v1from
Ryan-z-Feng-ccsf:ryan

Conversation

@Ryan-z-Feng-ccsf

@Ryan-z-Feng-ccsf Ryan-z-Feng-ccsf commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Fix #1368

Partially mocked astro:content using importOriginal to provide sample data for getCollection("examples"). This resolves the Vitest environment issue where the content collection was empty, while preserving other necessary exports like reference.

Supersedes #1411. This PR continues the work from the previous closing attempt but uses a dedicated branch and includes the full Vitest mock implementation to fix the test failures.

Screenshot 2026-06-03 093328 Screenshot 2026-06-03 101355

Ryan-z-Feng-ccsf and others added 8 commits May 27, 2026 13:27
Co-authored-by: pgzcoa <patriciaguerrero01@gmail.com>
Added note about translating Example pages and remix metadata.
… the actual resolved data instead of just the Promise object. Addresses PR review feedback.
Partially mocked  using  to provide sample data for . This resolves the Vitest environment issue where the content collection was empty, while preserving other necessary exports like .
@Ryan-z-Feng-ccsf

Copy link
Copy Markdown
Contributor Author

Partially mocked astro:content using importOriginal to provide sample data for getCollection("examples"). This resolves the Vitest environment issue where the content collection was empty, while preserving other necessary exports like reference.

@ksen0

ksen0 commented Jul 28, 2026

Copy link
Copy Markdown
Member

Apologies for the delay, this is great! I will merge it and cherrypick it to main as well:)

ksen0 added 2 commits July 28, 2026 17:15
Added clarification about copyright notice and attribution consistency when translating Example pages.
@ksen0
ksen0 merged commit 566269c into processing:v1 Jul 28, 2026
4 of 7 checks passed
@Ryan-z-Feng-ccsf
Ryan-z-Feng-ccsf deleted the ryan branch July 29, 2026 05:16
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.

The "attribution" section is not falling back to English on translated pages

2 participants