Skip to content

Commit 1c5f5ea

Browse files
committed
Fix tests
1 parent f4addb2 commit 1c5f5ea

File tree

11 files changed

+238
-236
lines changed

11 files changed

+238
-236
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node_version: [18, 20]
17+
node_version: [20, 22, 23]
1818
env:
1919
CI: true
2020

.github/workflows/pr.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
with:
1212
npmTag: alpha
1313
buildScript: build
14-
nodeVersion: 18
1514
packageManager: pnpm
1615
secrets:
1716
githubToken: ${{ secrets.GITHUB_TOKEN }}
@@ -24,4 +23,3 @@ jobs:
2423
with:
2524
installDependencies: true
2625
packageManager: pnpm
27-
nodeVersion: 18

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
1010
with:
1111
releaseScript: release
12-
nodeVersion: 18
1312
packageManager: pnpm
1413
secrets:
1514
githubToken: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: the-guild-org/shared-config/setup@main
2424
name: setup env
2525
with:
26-
nodeVersion: 18
26+
nodeVersion: 23
2727
packageManager: pnpm
2828

2929
- uses: the-guild-org/shared-config/website-cf@main

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v23

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"@zeit/ncc": "0.22.3",
8282
"bob-the-bundler": "7.0.1",
8383
"eslint": "8.57.1",
84-
"graphql": "16.9.0",
84+
"graphql": "16.10.0",
8585
"graphql-config": "5.1.0",
8686
"jsesc": "3.0.2",
8787
"lint-staged": "15.2.8",
@@ -103,7 +103,8 @@
103103
},
104104
"pnpm": {
105105
"overrides": {
106-
"@octokit/types": "5.5.0"
106+
"@octokit/types": "5.5.0",
107+
"graphql": "16.10.0"
107108
}
108109
}
109110
}

packages/commands/commands/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ export function parseGlobalArgs(args: GlobalArgs) {
7878
return { headers, leftHeaders, rightHeaders, token: args.token };
7979
}
8080

81-
export async function mockCommand(mod: Command, cmd: string) {
82-
return yargs(hideBin(process.argv)).command(mod).parseAsync(cmd);
81+
export function mockCommand(mod: Command, cmd: string) {
82+
return yargs(hideBin(process.argv)).command(mod).exitProcess(false).parseAsync(cmd);
8383
}

packages/core/src/validate/token-count.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ParseOptions, Source } from 'graphql';
22
import { DocumentNode, GraphQLError, TokenKind, visit } from 'graphql';
3-
import { Parser } from 'graphql/language/parser.js';
3+
import { Parser } from 'graphql/language/parser';
44

55
class ParserWithLexer extends Parser {
66
private __tokenCount = 0;

0 commit comments

Comments
 (0)