diff --git a/plugins/slack/__tests__/slack.test.ts b/plugins/slack/__tests__/slack.test.ts index c0cf088681..1b329889bb 100644 --- a/plugins/slack/__tests__/slack.test.ts +++ b/plugins/slack/__tests__/slack.test.ts @@ -31,10 +31,10 @@ const nextBranch = execSync("git rev-parse --abbrev-ref HEAD", { encoding: "utf8", }).trim(); -const mockAuto = ({ +const mockAuto = { git: {}, logger: dummyLog(), -} as unknown) as Auto; +} as any; describe("postToSlack", () => { test("doesn't post with no new version", async () => { @@ -296,7 +296,7 @@ describe("postToSlack", () => { const plugin = new SlackPlugin({ url: "https://custom-slack-url" }); const hooks = makeHooks(); process.env.SLACK_TOKEN = "MY_TOKEN"; - plugin.apply({ hooks, options: {}, ...mockAuto } as Auto); + plugin.apply({ options: {}, ...mockAuto, hooks } as Auto); await hooks.afterRelease.promise({ newVersion: "1.0.0",