Repository navigation
test(cli): run sentry wizard e2e tests in toolkit - #2547
sentry-junior[bot] wants to merge 4 commits into
Conversation
Move the e2e harness, the help-message test, and the Next.js 14/15/16 tests and their test apps from getsentry/sentry-wizard's e2e-tests/ into packages/cli/test/wizard-e2e/, and run them against `sentry wizard`. The harness spawns the npm bundle (or SENTRY_CLI_BINARY) and answers clack prompts over stdin with a small builder shaped like the clifty API the upstream tests used, so the remaining platform tests port with few changes. Runs that need a project log in to a local mock Sentry API (the existing test/mocks routes plus org auth token creation) with --url, --org and --project, so no Sentry account or secret is needed. The help test snapshots the new help and checks that the removed sign-up flags fail. `pnpm run test:wizard-e2e` runs them. They install packages and build real apps, so they stay out of test:unit and test:e2e, and wizard-e2e.yml runs one job per test file on pull requests that touch the wizard or these tests, and on manual dispatch. Refs #2511
…eat/cli-wizard-e2e Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
`sentry wizard` now takes `[<org>/<project>] [<integration>]` and only `-f/--force`, reads the instance from `SENTRY_URL`, and turns on Spotlight with `SENTRY_SPOTLIGHT`. The tests used the old flags. - Runs that need a project use `sentry wizard test-org/test-project nextjs`, with the mock API in `SENTRY_URL` and its token in `SENTRY_AUTH_TOKEN`. - The Spotlight run sets `SENTRY_SPOTLIGHT=1` through a new `env` option of `withEnv()`. - The help test snapshots the new help and checks that the sign-up flags and the other dropped `@sentry/wizard` flags fail. `--org` and `--project` still work as the CLI-wide hidden flags. - The tsconfig policy test lists the test apps as unchecked: they build with their own dependencies. Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
|
Warning Socket is a tool Sentry Security team deployed to defend against supply chain attack. Please provide any feedback you have in #discuss-security slack channel ❤️
|
…-wizard-e2e Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
Ports sentry-wizard's end-to-end suite for help output and Next.js to
sentry wizard, becausesentry wizardreplaces@sentry/wizard. Part of #2511.Stacked on #2520.
The upstream fixture apps are vendored. A local mock API replaces Sentry, so no secrets are needed. The new
wizard-e2e.ymlworkflow is path-filtered and not required. A macOS job waits for the iOS/React Native port.via @BYK.
--
View Session [Sentry]