diff --git a/plugins/git-tag/__tests__/git-tag.test.ts b/plugins/git-tag/__tests__/git-tag.test.ts index ed8300169..503ef2a18 100644 --- a/plugins/git-tag/__tests__/git-tag.test.ts +++ b/plugins/git-tag/__tests__/git-tag.test.ts @@ -85,7 +85,7 @@ describe("Git Tag Plugin", () => { describe("next", () => { test("should do nothing without git", async () => { const hooks = setup(); - await hooks.next.promise([], Auto.SEMVER.patch); + await hooks.next.promise([], Auto.SEMVER.patch, {} as any); expect(exec).not.toHaveBeenCalled(); }); @@ -95,7 +95,7 @@ describe("Git Tag Plugin", () => { getLastTagNotInBaseBranch: () => "v1.0.0", }); - await hooks.next.promise([], Auto.SEMVER.patch); + await hooks.next.promise([], Auto.SEMVER.patch, {} as any); expect(exec).toHaveBeenCalledWith("git", [ "tag", diff --git a/plugins/npm/__tests__/npm.test.ts b/plugins/npm/__tests__/npm.test.ts index 2dfee2f26..4d8e37af1 100644 --- a/plugins/npm/__tests__/npm.test.ts +++ b/plugins/npm/__tests__/npm.test.ts @@ -1075,9 +1075,9 @@ describe("next", () => { } `; - expect(await hooks.next.promise([], Auto.SEMVER.patch)).toStrictEqual([ - "1.2.4-next.0", - ]); + expect( + await hooks.next.promise([], Auto.SEMVER.patch, {} as any) + ).toStrictEqual(["1.2.4-next.0"]); expect(execPromise).toHaveBeenCalledWith("npm", [ "version", @@ -1126,9 +1126,9 @@ describe("next", () => { }, } as unknown) as Auto.Auto); - expect(await hooks.next.promise([], Auto.SEMVER.patch)).toStrictEqual([ - "1.2.4-next.0", - ]); + expect( + await hooks.next.promise([], Auto.SEMVER.patch, {} as any) + ).toStrictEqual(["1.2.4-next.0"]); expect(execPromise).toHaveBeenCalledWith( "npx", @@ -1164,10 +1164,9 @@ describe("next", () => { }, } as unknown) as Auto.Auto); - expect(await hooks.next.promise([], Auto.SEMVER.patch)).toStrictEqual([ - "@foo/1@1.0.0-next.0", - "@foo/2@2.0.0-next.0", - ]); + expect( + await hooks.next.promise([], Auto.SEMVER.patch, {} as any) + ).toStrictEqual(["@foo/1@1.0.0-next.0", "@foo/2@2.0.0-next.0"]); expect(execPromise).toHaveBeenCalledWith( "npx",