Skip to content

test: cover actions with all prerendered pages#16465

Open
statxc wants to merge 1 commit intowithastro:mainfrom
statxc:actions-all-prerendered-adapter
Open

test: cover actions with all prerendered pages#16465
statxc wants to merge 1 commit intowithastro:mainfrom
statxc:actions-all-prerendered-adapter

Conversation

@statxc
Copy link
Copy Markdown

@statxc statxc commented Apr 23, 2026

Adds a regression test for astro:actions to ensure projects with an adapter and all pages prerendered can still use action RPC routes in dev and build.

Fixes:#16256

Changes

  • Adds regression coverage for astro:actions when an adapter is configured and all project pages are prerendered.
  • Adds a minimal fixture with output: "server", an adapter, one prerendered page, and an action RPC route.
  • Verifies both dev and build behavior for the action RPC endpoint.

Testing

  • pnpm -C packages/astro build
  • pnpm -C packages/astro exec astro-scripts test "test/actions.test.ts" --strip-types --match "Astro Actions with adapter and all project pages prerendered" --timeout 180000 --force-exit
  • pnpm -C packages/astro exec astro-scripts test "test/actions.test.ts" --strip-types --timeout 300000 --force-exit

Docs

No docs changes needed. This only adds regression test coverage for existing astro:actions behavior.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 23, 2026

⚠️ No Changeset found

Latest commit: 62d0c71

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added the pkg: astro Related to the core `astro` package (scope) label Apr 23, 2026
@statxc
Copy link
Copy Markdown
Author

statxc commented Apr 23, 2026

Hi @ematipico , @alexanderniebuhr how are you? Please review this. I also have some personal questions regarding contribution. Can we contact on telegram or other community?

@alexanderniebuhr
Copy link
Copy Markdown
Member

https://astro.build/chat/ is the only official community we use

@statxc
Copy link
Copy Markdown
Author

statxc commented Apr 27, 2026

Hi @alexanderniebuhr could you please review this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: astro Related to the core `astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants