From a5dd5db35445c11e902e7c3e09365e85f583a4a6 Mon Sep 17 00:00:00 2001 From: Mikael Hugo Date: Fri, 15 May 2026 09:19:27 +0200 Subject: [PATCH] fix(self-feedback): align report kinds and isolate watchdog tests --- .../sf/tests/auto-halt-watchdog-notify.test.mjs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/resources/extensions/sf/tests/auto-halt-watchdog-notify.test.mjs b/src/resources/extensions/sf/tests/auto-halt-watchdog-notify.test.mjs index d22e0798c..d2c80adb9 100644 --- a/src/resources/extensions/sf/tests/auto-halt-watchdog-notify.test.mjs +++ b/src/resources/extensions/sf/tests/auto-halt-watchdog-notify.test.mjs @@ -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); });