Skip to content

Enable rsc error test #13696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 28, 2025
Merged

Enable rsc error test #13696

merged 4 commits into from
May 28, 2025

Conversation

jacob-ebey
Copy link
Member

  • wait on /favicon for integration test startup
  • serve public assets in parcel rsc integration test fixture
  • enable rsc error test for parcel

- serve public assets in parcel rsc integration test fixture
- enable rsc error test for parcel
Copy link

changeset-bot bot commented May 27, 2025

⚠️ No Changeset found

Latest commit: 506145a

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.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@@ -534,11 +534,20 @@ implementations.forEach((implementation) => {

test.describe("Errors", () => {
// FIXME: Unsure why these fail currently
Copy link
Member

Choose a reason for hiding this comment

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

This comment needs to be removed now?

@@ -463,7 +463,7 @@ async function waitForServer(

await waitOn({
resources: [
`http://${args.host ?? "localhost"}:${args.port}${args.basename ?? "/"}`,
`http://${args.host ?? "localhost"}:${args.port}${args.basename ?? "/favicon.ico"}`,
Copy link
Member

Choose a reason for hiding this comment

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

Why did this need to be changed?

Copy link
Member Author

Choose a reason for hiding this comment

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

The underlying logic for detecting "has the server started" seems to need a "success" status code. The test never starts because it responds with a 500. We should always have a favicon though, so just test start against it instead of app logic.

@jacob-ebey jacob-ebey merged commit e7eb25a into rsc May 28, 2025
7 of 8 checks passed
@jacob-ebey jacob-ebey deleted the fix-error-tests branch May 28, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants