indexer tests

This commit is contained in:
Dallin Romney 2025-03-14 11:28:55 -07:00
parent f070add842
commit 14db3347ad

View file

@ -14,12 +14,12 @@ import {
} from "../test/testDir.js";
import { getIndexSqlitePath } from "../util/paths.js";
import { localPathToUri } from "../util/pathToUri.js";
import { CodebaseIndexer, PauseToken } from "./CodebaseIndexer.js";
import { getComputeDeleteAddRemove } from "./refreshIndex.js";
import { TestCodebaseIndex } from "./TestCodebaseIndex.js";
import { CodebaseIndex } from "./types.js";
import { walkDir } from "./walkDir.js";
import { localPathToUri } from "../util/pathToUri.js";
import { walkDir, walkDirCache } from "./walkDir.js";
jest.useFakeTimers();
@ -87,6 +87,10 @@ describe("CodebaseIndexer", () => {
tearDownTestDir();
});
afterEach(() => {
walkDirCache.invalidate();
});
async function refreshIndex() {
const abortController = new AbortController();
const abortSignal = abortController.signal;