test(logging): reset diagnostic capture state

This commit is contained in:
Peter Steinberger
2026-07-05 07:15:07 -07:00
committed by GitHub
parent 61ac4ec8a0
commit 060a5dbf88
@@ -1,4 +1,4 @@
import { afterEach, describe, expect, it } from "vitest";
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import {
emitDiagnosticEvent,
resetDiagnosticEventsForTest,
@@ -6,6 +6,10 @@ import {
import { createDiagnosticLogRecordCapture } from "./diagnostic-log-capture.js";
describe("diagnostic log capture", () => {
beforeEach(() => {
resetDiagnosticEventsForTest();
});
afterEach(() => {
resetDiagnosticEventsForTest();
});