Skip to content

Commit c0ed9da

Browse files
authored
Merge pull request #247 from proto-graphql/izumin5210/cleanup-dependencies
Cleanup dependencies
2 parents 5e052be + 3e88aa9 commit c0ed9da

File tree

32 files changed

+171
-627
lines changed

32 files changed

+171
-627
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- run: yarn --frozen-lockfile
3838
- run: yarn lint
3939
env:
40-
NODE_OPTIONS: "--max_old_space_size=4096"
40+
NODE_OPTIONS: "--max_old_space_size=8192"
4141
- run: yarn format
4242
- name: check generated code is up to date
4343
run: git diff --exit-code

e2e/package.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,21 @@
44
"description": "E2E tests",
55
"private": true,
66
"devDependencies": {
7+
"@pothos/core": "3.23.2",
8+
"@proto-nexus/google-protobuf": "^0.5.1",
9+
"@proto-nexus/protobufjs": "^0.5.1",
710
"@testapis/node": "^0.5.0",
811
"@testapis/node-native": "^0.5.1",
912
"@testapis/ts-proto": "^0.5.1",
1013
"@testapis/ts-proto-with-forcelong-number": "^0.6.0",
11-
"protoc-gen-nexus": "^0.6.0",
12-
"protoc-gen-pothos": "^0.3.0",
14+
"@types/glob": "^8.0.0",
15+
"glob": "8.0.3",
16+
"graphql": "15.4.0",
17+
"graphql-scalars": "1.20.1",
18+
"nexus": "1.3.0",
19+
"protoc-gen-nexus": "0.6.0",
20+
"protoc-gen-pothos": "0.3.0",
21+
"proto-nexus": "^0.5.1",
1322
"tsconfig-paths": "^4.1.0"
1423
},
1524
"scripts": {

e2e/tests/nexus--enums--protobufjs/schema.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { graphql } from "graphql";
33
import { schema } from "./schema";
44

55
it("processes a query successfully", async () => {
6-
const resp = await graphql(
6+
const resp = await graphql({
77
schema,
8-
/* GraphQL */ `
8+
source: /* GraphQL */ `
99
query Test {
1010
test {
1111
...Message
@@ -17,8 +17,8 @@ it("processes a query successfully", async () => {
1717
optionalMyEnum
1818
optionalMyEnumWithoutUnspecified
1919
}
20-
`
21-
);
20+
`,
21+
});
2222
expect(resp).toMatchInlineSnapshot(`
2323
{
2424
"data": {

e2e/tests/nexus--extensions--google-protobuf/schema.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { graphql } from "graphql";
33
import { schema } from "./schema";
44

55
it("processes a query with squashed union successfully", async () => {
6-
const resp = await graphql(
6+
const resp = await graphql({
77
schema,
8-
/* GraphQL */ `
8+
source: /* GraphQL */ `
99
query Test {
1010
test {
1111
squashedMessage {
@@ -24,8 +24,8 @@ it("processes a query with squashed union successfully", async () => {
2424
fragment Inner2 on TestPrefixPrefixedMessageInnerMessage2 {
2525
body
2626
}
27-
`
28-
);
27+
`,
28+
});
2929
expect(resp).toMatchInlineSnapshot(`
3030
{
3131
"data": {

e2e/tests/nexus--extensions--protobufjs/schema.test.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { graphql } from "graphql";
33
import { schema } from "./schema";
44

55
it("processes a query with squashed union successfully", async () => {
6-
const resp = await graphql(
6+
const resp = await graphql({
77
schema,
8-
/* GraphQL */ `
8+
source: /* GraphQL */ `
99
query Test {
1010
testSquashedUnion {
1111
squashedMessage {
@@ -24,8 +24,8 @@ it("processes a query with squashed union successfully", async () => {
2424
fragment Inner2 on TestPrefixPrefixedMessageInnerMessage2 {
2525
body
2626
}
27-
`
28-
);
27+
`,
28+
});
2929
expect(resp).toMatchInlineSnapshot(`
3030
{
3131
"data": {
@@ -40,9 +40,9 @@ it("processes a query with squashed union successfully", async () => {
4040
});
4141

4242
it("processes a query with interface successfully", async () => {
43-
const resp = await graphql(
43+
const resp = await graphql({
4444
schema,
45-
/* GraphQL */ `
45+
source: /* GraphQL */ `
4646
query Test {
4747
testInterface {
4848
interfaceMessage {
@@ -61,8 +61,8 @@ it("processes a query with interface successfully", async () => {
6161
fragment Inner2 on TestPrefixPrefixedMessageInnerMessage2 {
6262
body
6363
}
64-
`
65-
);
64+
`,
65+
});
6666
expect(resp).toMatchInlineSnapshot(`
6767
{
6868
"data": {
@@ -77,9 +77,9 @@ it("processes a query with interface successfully", async () => {
7777
});
7878

7979
it("processes a query with skipResolver successfully", async () => {
80-
const resp = await graphql(
80+
const resp = await graphql({
8181
schema,
82-
/* GraphQL */ `
82+
source: /* GraphQL */ `
8383
query Test {
8484
testSkipResolver {
8585
squashedMessage {
@@ -92,8 +92,8 @@ it("processes a query with skipResolver successfully", async () => {
9292
fragment Inner on TestPrefixPrefixedMessageInnerMessage {
9393
skipResolver
9494
}
95-
`
96-
);
95+
`,
96+
});
9797
expect(resp).toMatchInlineSnapshot(`
9898
{
9999
"data": {

e2e/tests/nexus--primitives--google-protobuf/schema.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { graphql } from "graphql";
33
import { schema } from "./schema";
44

55
it("processes a query successfully", async () => {
6-
const resp = await graphql(
6+
const resp = await graphql({
77
schema,
8-
/* GraphQL */ `
8+
source: /* GraphQL */ `
99
query Test {
1010
test {
1111
requiredPrimitives {
@@ -38,8 +38,8 @@ it("processes a query successfully", async () => {
3838
requiredBoolValue
3939
requiredStringValue
4040
}
41-
`
42-
);
41+
`,
42+
});
4343
expect(resp).toMatchInlineSnapshot(`
4444
{
4545
"data": {

e2e/tests/nexus--primitives--protobufjs/schema.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { graphql } from "graphql";
33
import { schema } from "./schema";
44

55
it("processes a query successfully", async () => {
6-
const resp = await graphql(
6+
const resp = await graphql({
77
schema,
8-
/* GraphQL */ `
8+
source: /* GraphQL */ `
99
query Test {
1010
test {
1111
requiredPrimitives {
@@ -38,8 +38,8 @@ it("processes a query successfully", async () => {
3838
requiredBoolValue
3939
requiredStringValue
4040
}
41-
`
42-
);
41+
`,
42+
});
4343
expect(resp).toMatchInlineSnapshot(`
4444
{
4545
"data": {

e2e/tests/nexus--wktypes--protobufjs/schema.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { graphql } from "graphql";
33
import { schema } from "./schema";
44

55
it("processes a query successfully", async () => {
6-
const resp = await graphql(
6+
const resp = await graphql({
77
schema,
8-
/* GraphQL */ `
8+
source: /* GraphQL */ `
99
query Test {
1010
test1 {
1111
...Message
@@ -22,8 +22,8 @@ it("processes a query successfully", async () => {
2222
boolValue
2323
stringValue
2424
}
25-
`
26-
);
25+
`,
26+
});
2727
expect(resp).toMatchInlineSnapshot(`
2828
{
2929
"data": {
@@ -44,9 +44,9 @@ it("processes a query successfully", async () => {
4444
});
4545

4646
it("processes a query successfully when returns message fields are null", async () => {
47-
const resp = await graphql(
47+
const resp = await graphql({
4848
schema,
49-
/* GraphQL */ `
49+
source: /* GraphQL */ `
5050
query Test {
5151
test2 {
5252
...Message
@@ -63,8 +63,8 @@ it("processes a query successfully when returns message fields are null", async
6363
boolValue
6464
stringValue
6565
}
66-
`
67-
);
66+
`,
67+
});
6868
expect(resp).toMatchInlineSnapshot(`
6969
{
7070
"data": {

e2e/tests/pothos--deprecation--ts-proto/schema.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { graphql } from "graphql";
33
import { schema } from "./schema";
44

55
it("processes a query successfully", async () => {
6-
const resp = await graphql(
6+
const resp = await graphql({
77
schema,
8-
/* GraphQL */ `
8+
source: /* GraphQL */ `
99
query Test {
1010
test1 {
1111
body
@@ -14,8 +14,8 @@ it("processes a query successfully", async () => {
1414
body
1515
}
1616
}
17-
`
18-
);
17+
`,
18+
});
1919
expect(resp).toMatchInlineSnapshot(`
2020
{
2121
"data": {

e2e/tests/pothos--edgecases-import_from_same_pkg--ts-proto/schema.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import { graphql } from "graphql";
33
import { schema } from "./schema";
44

55
it("processes a query successfully", async () => {
6-
const resp = await graphql(
6+
const resp = await graphql({
77
schema,
8-
/* GraphQL */ `
8+
source: /* GraphQL */ `
99
query Test {
1010
test {
1111
child {
1212
body
1313
}
1414
}
1515
}
16-
`
17-
);
16+
`,
17+
});
1818
expect(resp).toMatchInlineSnapshot(`
1919
{
2020
"data": {

0 commit comments

Comments
 (0)