Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/bundler-plugins/test/core/cli-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ beforeAll(() => {
process.env['SENTRY_CONFIG_DIR'] = join(workDir, 'sentry-home');
mkdirSync(process.env['SENTRY_CONFIG_DIR']);

// Every command otherwise waits up to ~3s to flush its own telemetry to sentry.io, which makes
// the suite depend on that endpoint being reachable and pushes slow CI runs past the timeout.
process.env['SENTRY_CLI_NO_TELEMETRY'] = '1';

// The mock server writes its recording relative to cwd.
previousCwd = process.cwd();
process.chdir(workDir);
Expand All @@ -100,6 +104,7 @@ afterAll(() => {
server.close();
process.chdir(previousCwd);
delete process.env['SENTRY_CONFIG_DIR'];
delete process.env['SENTRY_CLI_NO_TELEMETRY'];
rmSync(workDir, { recursive: true, force: true });
});

Expand Down
Loading