npx skills add ...
npx skills add getsentry/sentry-javascript --skill e2e
Run E2E tests for Sentry JavaScript SDK test applications
npx skills add getsentry/sentry-javascript --skill e2e
This skill runs end-to-end tests for Sentry JavaScript SDK test applications. It ensures SDK packages are built before running tests.
The user provides a test application name and optionally a variant:
e2e-tests/test-applications/nextjs-app-dir (full path)nextjs-app-dir (just the app name)nextjs-app-dir --variant nextjs-15 (with variant)Extract the test app name from user input:
e2e-tests/test-applications/ prefix if present--variant nextjs-15)nextjs-app-dir)If the user recently edited files in packages/*, identify which packages were modified:
For each modified package, rebuild its tarball:
Option C: User Specifies Packages
If the user says "I changed @sentry/node" or similar, rebuild just that package:
Check that the test app exists:
If it doesn't exist, list available test apps:
Ask the user which one they meant.
Navigate to the e2e-tests directory and run the test:
If a variant was specified:
After the test completes, provide a summary:
If tests passed:
If tests failed:
If package rebuild was needed:
yarn build && yarn build:tarball at repository rootyarn build:tarball at the repo root, then yarn test:prepare in dev-packages/e2e-testsHere are frequently tested applications:
nextjs-app-dir - Next.js App Routernextjs-15 - Next.js 15.xreact-create-hash-router - React with React Routernode-express-esm-loader - Node.js Express with ESMsveltekit-2 - SvelteKit 2.xremix-2 - Remix 2.xnuxt-3 - Nuxt 3.xTo see all available test apps:
This skill integrates with the standard SDK development workflow:
packages/*/e2e <app-name> to test your changesThe skill automates the tedious parts of: