We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 507dde3 + e54113e commit 2dfab6dCopy full SHA for 2dfab6d
plugins/all-contributors/__tests__/all-contributors.test.ts
@@ -17,6 +17,7 @@ const addContributorMock = jest.fn();
17
const envMock = jest.fn();
18
const gitShow = jest.fn();
19
const writeMock = jest.fn();
20
+const existsSync = jest.fn().mockReturnValue(true);
21
const getLernaPackages = jest.fn();
22
23
envMock.mockReturnValue({});
@@ -51,6 +52,7 @@ const mockRead = (result: string) =>
51
52
.mockReturnValueOnce(result);
53
54
jest.spyOn(fs, "writeFileSync").mockImplementation(writeMock);
55
+jest.spyOn(fs, "existsSync").mockImplementation(existsSync);
56
57
describe("All Contributors Plugin", () => {
58
afterEach(() => {
0 commit comments