fix(self-feedback): align report kinds and isolate watchdog tests

This commit is contained in:
Mikael Hugo 2026-05-15 09:19:27 +02:00
parent ff31258629
commit a5dd5db354

View file

@ -1,5 +1,11 @@
import assert from "node:assert/strict";
import { existsSync, mkdirSync, readFileSync, rmSync } from "node:fs";
import {
existsSync,
mkdirSync,
readFileSync,
rmSync,
writeFileSync,
} from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { afterEach, beforeEach, test, vi } from "vitest";
@ -19,6 +25,10 @@ beforeEach(() => {
_resetNotificationStore();
testDir = join(tmpdir(), `sf-watchdog-test-${Date.now()}`);
mkdirSync(testDir, { recursive: true });
writeFileSync(
join(testDir, "package.json"),
JSON.stringify({ name: "singularity-forge" }),
);
initNotificationStore(testDir);
});