Skip to content

test: mock astro:content for getFallbackRemixData test#1425

Open
Ryan-z-Feng-ccsf wants to merge 8 commits into
processing:mainfrom
Ryan-z-Feng-ccsf:ryan
Open

test: mock astro:content for getFallbackRemixData test#1425
Ryan-z-Feng-ccsf wants to merge 8 commits into
processing:mainfrom
Ryan-z-Feng-ccsf:ryan

Conversation

@Ryan-z-Feng-ccsf
Copy link
Copy Markdown

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

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
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.

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.

1 participant