Skip to content

Commit e3cca22

Browse files
authored
test(e2e): move e2e test dependencies to each test packages from root (#403)
1 parent e8c9750 commit e3cca22

File tree

69 files changed

+1092
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1092
-98
lines changed

e2e/helper/package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
"build:e2e": "tsc --build tsconfig.cjs.json",
99
"clean": "pnpm run build:e2e --clean"
1010
},
11+
"peerDependencies": {
12+
"graphql": "catalog:test",
13+
"nexus": "catalog:test"
14+
},
15+
"peerDependenciesMeta": {
16+
"graphql": { "optional": true },
17+
"nexus": { "optional": true }
18+
},
1119
"devDependencies": {
1220
"@proto-graphql/tsconfig": "workspace:*"
1321
},

e2e/testapis/google-protobuf/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,11 @@
22
"name": "@proto-graphql/e2e-testapis-google-protobuf",
33
"version": "0.0.0",
44
"description": "Generated codes with protocolbuffers/protobuf's js_out",
5-
"private": true
5+
"private": true,
6+
"dependencies": {
7+
"google-protobuf": "catalog:test"
8+
},
9+
"devDependencies": {
10+
"@types/google-protobuf": "catalog:"
11+
}
612
}

e2e/testapis/protobuf-es/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"main": "./lib/index.js",
1212
"types": "./lib/index.d.ts",
1313
"dependencies": {
14-
"@bufbuild/protobuf": "catalog:"
14+
"@bufbuild/protobuf": "catalog:protobuf-es-v1"
1515
}
1616
}

e2e/testapis/protobufjs/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"name": "@proto-graphql/e2e-testapis-protobufjs",
33
"version": "0.0.0",
44
"description": "Generated codes with protobufjs",
5-
"private": true
5+
"private": true,
6+
"dependencies": {
7+
"protobufjs": "catalog:test"
8+
}
69
}

e2e/testapis/ts-proto-with-forcelong-long/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Generated codes with protocolbuffers/protobuf's js_out",
55
"private": true,
66
"dependencies": {
7-
"long": "^5.2.1"
7+
"long": "catalog:test",
8+
"protobufjs": "catalog:test"
89
},
910
"scripts": {
1011
"build:e2e": "tsc --build tsconfig.cjs.json",

e2e/testapis/ts-proto-with-forcelong-number/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Generated codes with protocolbuffers/protobuf's js_out",
55
"private": true,
66
"dependencies": {
7-
"long": "^5.2.1"
7+
"long": "catalog:test",
8+
"protobufjs": "catalog:test"
89
},
910
"scripts": {
1011
"build:e2e": "tsc --build tsconfig.cjs.json",

e2e/testapis/ts-proto/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Generated codes with protocolbuffers/protobuf's js_out",
55
"private": true,
66
"dependencies": {
7-
"long": "^5.2.1"
7+
"long": "catalog:test",
8+
"protobufjs": "catalog:test"
89
},
910
"scripts": {
1011
"build:e2e": "tsc --build tsconfig.cjs.json",

e2e/tests/nexus--deprecation--google-protobuf/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
"test:e2e:schema": "git diff --exit-code __generated__/schema.graphql",
1313
"test:e2e:typecheck": "tsc --build tsconfig.json"
1414
},
15+
"dependencies": {
16+
"nexus": "catalog:test",
17+
"@types/google-protobuf": "catalog:",
18+
"google-protobuf": "catalog:test",
19+
"graphql": "catalog:test",
20+
"graphql-scalars": "catalog:test"
21+
},
1522
"devDependencies": {
1623
"@proto-graphql/e2e-helper": "workspace:*",
1724
"@proto-graphql/e2e-testapis-google-protobuf": "workspace:*",

e2e/tests/nexus--deprecation--protobufjs/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
"test:e2e:schema": "git diff --exit-code __generated__/schema.graphql",
1313
"test:e2e:typecheck": "tsc --build tsconfig.json"
1414
},
15+
"dependencies": {
16+
"nexus": "catalog:test",
17+
"protobufjs": "catalog:test",
18+
"graphql": "catalog:test",
19+
"graphql-scalars": "catalog:test"
20+
},
1521
"devDependencies": {
1622
"@proto-graphql/e2e-helper": "workspace:*",
1723
"@proto-graphql/e2e-testapis-protobufjs": "workspace:*",

e2e/tests/nexus--edgecases-import_from_same_pkg--google-protobuf/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
"test:e2e:schema": "git diff --exit-code __generated__/schema.graphql",
1313
"test:e2e:typecheck": "tsc --build tsconfig.json"
1414
},
15+
"dependencies": {
16+
"nexus": "catalog:test",
17+
"@types/google-protobuf": "catalog:",
18+
"google-protobuf": "catalog:test",
19+
"graphql": "catalog:test",
20+
"graphql-scalars": "catalog:test"
21+
},
1522
"devDependencies": {
1623
"@proto-graphql/e2e-helper": "workspace:*",
1724
"@proto-graphql/e2e-testapis-google-protobuf": "workspace:*",

0 commit comments

Comments
 (0)