vicky469_aside/tests/commentPersistenceScanScope.test.ts
vicky 8eec589e2e fix(comments): keep reload responsive
Register the UI before startup maintenance so Aside is visible while persistence cleanup runs in the background.

Cancel long persistence scans on unload, skip generated markdown paths, and prune deleted sidecar/source records before rebuilding the index.
2026-05-14 23:33:45 -04:00

12 lines
424 B
TypeScript

import * as assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import test from "node:test";
test("comment persistence startup scans use the commentable file policy", () => {
const source = readFileSync("src/comments/commentPersistenceController.ts", "utf8");
assert.equal(
source.includes(".filter((file) => !this.host.isAllCommentsNotePath(file.path))"),
false,
);
});