Let's figure out how to best test `@sentry/node`. - Run an express server and check stuff? - Something similar to nextjs server tests https://github.com/getsentry/sentry-javascript/blob/master/packages/nextjs/test/integration/test/server.js? Our existing setup (running node scripts and asserting on the process): https://github.com/getsentry/sentry-javascript/tree/master/packages/node/test/manual @onurtemizkan fyi if you have any feedback. List of things that need to be tested: ### Public API tests - [ ] `addBreadcrumb` - [ ] `captureException` - [ ] `captureMessage` - [ ] `configureScope` - [ ] `setContext` - [ ] `setExtra` - [ ] `setExtras` - [ ] `setTag` - [ ] `setTags` - [ ] `setUser` - [ ] `withScope` - [ ] `showReportDialog` - [ ] `flush` ### Performance - [ ] `startTransaction` - [ ] Node Database Auto-instrumentation - [ ] Mongo - [ ] MySQL - [ ] Postgres ### Sessions ### Express - [ ] Errors - [ ] Performance ### Koa - [ ] Errors - [ ] Performance
Activity
AbhiPrasad commentedon Dec 10, 2021
This will help unblock #3961
AbhiPrasad commentedon Feb 14, 2022
We'll need to make sure we can integration test changes like #4563
AbhiPrasad commentedon Mar 23, 2022
Transferred tracking individual integration tests in #4762