fix(self-feedback): align report kinds and isolate watchdog tests
This commit is contained in:
parent
ff31258629
commit
a5dd5db354
1 changed files with 11 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue