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); });