Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs: add testing workflows guide to foundations#1115

Open
johnlindquist wants to merge 5 commits intomainfrom
docs/testing-workflows
Open

docs: add testing workflows guide to foundations#1115
johnlindquist wants to merge 5 commits intomainfrom
docs/testing-workflows

Conversation

@johnlindquist
Copy link
Contributor

Summary

  • Adds testing guide to Foundations section covering unit testing steps, integration testing workflows, hooks/webhooks testing, error handling tests, and stress testing
  • Motivated by usage data: 242K testing runs and need for developer experience guidance
  • All code samples pass TypeScript type-checking validation
  • Link validation passes with zero errors

Test plan

  • Verify link validation passes (bun run lint:links - 0 errors)
  • Verify TypeScript code samples compile (pnpm test:docs - all testing.mdx samples pass)
  • Verify MDX renders correctly in dev server
  • Verify meta.json and index.mdx navigation works

@changeset-bot
Copy link

changeset-bot bot commented Feb 18, 2026

⚠️ No Changeset found

Latest commit: 591af90

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

@vercel
Copy link
Contributor

vercel bot commented Feb 18, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

No benchmark result files found in benchmark-results

@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 147 0 9 156
✅ 💻 Local Development 278 0 34 312
✅ 📦 Local Production 188 0 20 208
✅ 🐘 Local Postgres 188 0 20 208
✅ 🪟 Windows 49 0 3 52
❌ 🌍 Community Worlds 103 1 6 110
✅ 📋 Other 45 0 7 52
Total 998 1 99 1098

❌ Failed Tests

🌍 Community Worlds (1 failed)

mongodb (1 failed):

  • webhookWorkflow

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 48 0 4
✅ nextjs-turbopack 51 0 1
✅ sveltekit 48 0 4
✅ 💻 Local Development
App Passed Failed Skipped
✅ express-stable 45 0 7
✅ nextjs-turbopack-canary 49 0 3
✅ nextjs-webpack-canary 49 0 3
✅ nitro-stable 45 0 7
✅ sveltekit-stable 45 0 7
✅ vite-stable 45 0 7
✅ 📦 Local Production
App Passed Failed Skipped
✅ express-stable 45 0 7
✅ nextjs-turbopack-canary 49 0 3
✅ nextjs-webpack-canary 49 0 3
✅ nuxt-stable 45 0 7
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ fastify-stable 45 0 7
✅ nextjs-turbopack-stable 49 0 3
✅ nextjs-webpack-canary 49 0 3
✅ vite-stable 45 0 7
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 49 0 3
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 0
❌ mongodb 48 1 3
✅ redis-dev 3 0 0
✅ redis 49 0 3
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-prod-nest-stable 45 0 7

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: failure
  • Local Dev: failure
  • Local Prod: failure
  • Local Postgres: failure
  • Windows: success

Check the workflow run for details.

Document the integration testing approach pioneered by Mux for testing
workflows end-to-end using a Vitest global setup that spawns a dev
server as a sidecar process.
Copy link
Member

@VaguelySerious VaguelySerious left a comment

Choose a reason for hiding this comment

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

LGTM. I was thinking it should be possible to eventually allow vitest to run a full workflow e2e on the local world, but we'd need to write an integration for it. For now, shipping these docs is a step in the right direction IMO

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