mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Updated @actions/* and @octokit/* dependencies (#477)
This commit is contained in:
+3
-13
@@ -16,19 +16,9 @@ jest.mock("@actions/github", () => ({
|
||||
ref: "refs/heads/some-branch",
|
||||
sha: "xeac7",
|
||||
},
|
||||
}));
|
||||
jest.mock("@actions/github/lib/utils", () => ({
|
||||
GitHub: {
|
||||
plugin: () => {
|
||||
// function necessary to be used as constructor
|
||||
return function () {
|
||||
return {
|
||||
rest: mockedGithubMethods,
|
||||
};
|
||||
};
|
||||
},
|
||||
},
|
||||
getOctokitOptions: jest.fn(),
|
||||
getOctokit: () => ({
|
||||
rest: mockedGithubMethods,
|
||||
}),
|
||||
}));
|
||||
jest.mock("./git");
|
||||
jest.mock("@changesets/ghcommit/git");
|
||||
|
||||
Reference in New Issue
Block a user