refactor(docs): strip residual Phase/Plan setup-history references

Final sweep for setup-process bookkeeping not caught by template-reset-v1.
ADRs drop Plan-N qualifiers; spec collapses the historical 11-phase
migration table; scaffolding guide drops "Phase added" column; comment
prefixes referencing R-numbers in test describes / eslint inline comments
are normalized. Architecture-level rule IDs (R40, R52, E0, J0, etc.) are
preserved where they serve as stable cross-references in ADRs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-13 10:28:31 +02:00
parent 318dc05b6e
commit 2edc76002a
13 changed files with 155 additions and 137 deletions

View File

@@ -1,7 +1,7 @@
import { vi } from "vitest";
/**
* R49 — guard against real Sentry SDK + OTel SDK initialization in test processes.
* Guard against real Sentry SDK + OTel SDK initialization in test processes.
*
* Mocks @sentry/* and key @opentelemetry/sdk-* modules at the module level so
* any code that imports them receives a no-op surface. Tests that need to assert
@@ -78,8 +78,12 @@ vi.mock("@opentelemetry/sdk-node", () => ({
BatchSpanProcessor: class {
onStart() {}
onEnd() {}
forceFlush() { return Promise.resolve(); }
shutdown() { return Promise.resolve(); }
forceFlush() {
return Promise.resolve();
}
shutdown() {
return Promise.resolve();
}
},
},
}));
@@ -88,8 +92,12 @@ vi.mock("@sentry/opentelemetry", () => ({
SentrySpanProcessor: class {
onStart() {}
onEnd() {}
forceFlush() { return Promise.resolve(); }
shutdown() { return Promise.resolve(); }
forceFlush() {
return Promise.resolve();
}
shutdown() {
return Promise.resolve();
}
},
// SentryLogRecordProcessor does NOT exist in @sentry/opentelemetry v10 — omitted.
// No-op Sentry.init wrapper used by sentry-bridge.ts