We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f01120 commit b2c8575Copy full SHA for b2c8575
src/git.test.ts
@@ -117,7 +117,9 @@ describe("getUntrackedFileList", () => {
117
);
118
const staged = false;
119
const fileListB = getUntrackedFileList(staged);
120
- expect(mockedChildProcess.execFileSync).toHaveBeenCalledTimes(2);
+ // `getUntrackedFileList` uses a cache, so the number of calls to
121
+ // `execFileSync` will not have increased.
122
+ expect(mockedChildProcess.execFileSync).toHaveBeenCalledTimes(1);
123
124
expect(fileListA).toEqual(
125
["file1", "file2", "file3"].map((p) => path.resolve(p))
0 commit comments