npx skills add ...
npx skills add getsentry/sentry-javascript --skill e2e
npx skills add getsentry/sentry-javascript --skill e2e
Run E2E tests for Sentry JavaScript SDK test applications
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:
cd packages/node
yarn build && yarn build:tarball
cd ../..ls -d dev-packages/e2e-tests/test-applications/<app-name>ls dev-packages/e2e-tests/test-applications/ls dev-packages/e2e-tests/test-applications/cd dev-packages/e2e-tests
yarn test:run <app-name>cd dev-packages/e2e-tests
yarn test:run <app-name> --variant <variant-name>✅ E2E tests passed for <app-name>
All tests completed successfully. Your SDK changes work correctly with this test application.❌ E2E tests failed for <app-name>
[Include relevant error output]📦 Rebuilt SDK packages: <list of packages>
🧪 Running E2E tests for <app-name>...# User: "Run e2e tests for node-express-esm-loader"
# Step 1: Detect recent changes to packages/node
# Step 2: Rebuild the modified package
cd packages/node
yarn build && yarn build:tarball
cd ../..
# Step 3: Run the test
cd dev-packages/e2e-tests
yarn test:run node-express-esm-loader# User: "Run e2e tests for nextjs-app-dir"
# Step 1: Check for existing tarballs
# Step 2: None found, build all packages
yarn build && yarn build:tarball
# Step 3: Run the test
cd dev-packages/e2e-tests
yarn test:run nextjs-app-dir# User: "Run e2e tests for nextjs-app-dir with nextjs-15 variant"
# Step 1: Rebuild if needed
# Step 2: Run with variant
cd dev-packages/e2e-tests
yarn test:run nextjs-app-dir --variant nextjs-15