Skip to content

Commit

Permalink
build: fix types for test context
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampfmoehre committed Aug 22, 2022
1 parent d90d47a commit 5a52847
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/prepare.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ describe("prepare", () => {
beforeAll(() => {
const logMock = jest.fn<void, unknown[]>();
context = {
branch: { name: "main" },
env: {},
logger: { log: logMock, error: logMock },
logger: { log: logMock, error: logMock } as any,
nextRelease: { gitTag: "v1.0.0", notes: "", type: "major", gitHead: "", version: "1.0.0" },
};
});
Expand Down
3 changes: 2 additions & 1 deletion test/publish.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ describe("publish", () => {
beforeAll(() => {
const logMock = jest.fn<void, unknown[]>();
context = {
branch: { name: "main" },
env: {},
logger: { log: logMock, error: logMock },
logger: { log: logMock, error: logMock } as any,
nextRelease: { gitTag: "v1.0.0", notes: "", type: "major", gitHead: "", version: "1.0.0" },
};
execaMock = execa as unknown as jest.Mock<ExecaReturnBase<string>, never[]>;
Expand Down
3 changes: 2 additions & 1 deletion test/verify.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ describe("verify", () => {
originalEnv = process.env;
const logMock = jest.fn<void, unknown[]>();
context = {
branch: { name: "main" },
env: {},
logger: { log: logMock, error: logMock },
logger: { log: logMock, error: logMock } as any,
nextRelease: { gitTag: "v1.0.0", notes: "", type: "major", gitHead: "", version: "1.0.0" },
};
execaMock = execa as unknown as jest.Mock<ExecaReturnBase<string>, unknown[]>;
Expand Down

0 comments on commit 5a52847

Please sign in to comment.