indexer tests
This commit is contained in:
parent
f070add842
commit
14db3347ad
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue