Skip to content

Commit b350cc6

Browse files
authored
Merge pull request #106 from imjohnbo/chore/update-deps
chore: update deps, fix undici CVEs, expand test coverage
2 parents d7a1584 + d171c34 commit b350cc6

5 files changed

Lines changed: 38490 additions & 36024 deletions

File tree

__mocks__/@actions/github.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/* eslint-env jest */
2+
'use strict';
3+
4+
const mockOctokit = {
5+
rest: {
6+
issues: {
7+
create: jest.fn(),
8+
update: jest.fn(),
9+
createComment: jest.fn(),
10+
listForRepo: jest.fn()
11+
},
12+
projects: {
13+
listForRepo: jest.fn(),
14+
listForUser: jest.fn(),
15+
listForOrg: jest.fn(),
16+
listColumns: jest.fn(),
17+
createCard: jest.fn()
18+
}
19+
},
20+
graphql: jest.fn(),
21+
paginate: {
22+
iterator: jest.fn()
23+
}
24+
};
25+
26+
module.exports = {
27+
context: {
28+
repo: { owner: 'owner', repo: 'repo' }
29+
},
30+
getOctokit: jest.fn().mockReturnValue(mockOctokit),
31+
mockOctokit
32+
};

0 commit comments

Comments
 (0)