Skip to content

Commit dce9f2d

Browse files
authored
feat(3282): upgrade Node.js v22 and dependencies. BREAKING CHANGE: Node22 (#6)
1 parent bce30be commit dce9f2d

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "screwdriver-scm-github-graphql",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"description": "Github GraphQL SCM for Screwdriver",
55
"main": "index.js",
66
"scripts": {
@@ -23,16 +23,16 @@
2323
"devDependencies": {
2424
"rewiremock": "^3.14.5",
2525
"chai": "^4.3.6",
26-
"eslint": "^7.32.0",
27-
"eslint-config-screwdriver": "^5.0.1",
26+
"eslint": "^8.57.0",
27+
"eslint-config-screwdriver": "^8.0.0",
2828
"mocha": "^10.3.0",
2929
"mocha-multi-reporters": "^1.5.1",
3030
"mocha-sonarqube-reporter": "^1.0.2",
3131
"nyc": "^15.0.0",
3232
"sinon": "^9.0.0"
3333
},
3434
"dependencies": {
35-
"screwdriver-request": "^2.0.1"
35+
"screwdriver-request": "^3.0.0"
3636
},
3737
"release": {
3838
"branches": ["main"],

screwdriver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
shared:
2-
image: node:18
2+
image: node:22
33

44
jobs:
55
main:

test/index.test.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,7 @@ describe('GithubGraphQL', () => {
220220

221221
githubGql.sdGql.query = sinon.stub().resolves();
222222

223-
githubGql.sdGql.query
224-
.onFirstCall()
225-
.resolves({ data: data1 })
226-
.onSecondCall()
227-
.resolves({ data: data2 });
223+
githubGql.sdGql.query.onFirstCall().resolves({ data: data1 }).onSecondCall().resolves({ data: data2 });
228224

229225
const result = await githubGql.listEnterpriseMembers({
230226
slug,

0 commit comments

Comments
 (0)