Skip to content

Commit

Permalink
Avoid uploading Mesh configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Dec 12, 2024
1 parent 12bfea9 commit 86e733f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
20 changes: 20 additions & 0 deletions e2e/apq-subgraphs/gateway.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { defineConfig } from '@graphql-hive/gateway';

let fetchCnt = 0;
export const gatewayConfig = defineConfig({
transportEntries: {
greetings: {
options: {
apq: true,
},
},
},
plugins: () => [
{
onFetch({ options }) {
fetchCnt++;
process.stdout.write(`fetch ${fetchCnt} ${options.body}\n`);
},
},
],
});
24 changes: 2 additions & 22 deletions e2e/apq-subgraphs/mesh.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { defineConfig as defineGatewayConfig } from '@graphql-hive/gateway';
import {
defineConfig as defineComposeConfig,
defineConfig,
loadGraphQLHTTPSubgraph,
} from '@graphql-mesh/compose-cli';
import { Opts } from '@internal/testing';

const opts = Opts(process.argv);

export const composeConfig = defineComposeConfig({
export const composeConfig = defineConfig({
subgraphs: [
{
sourceHandler: loadGraphQLHTTPSubgraph('greetings', {
Expand All @@ -16,22 +15,3 @@ export const composeConfig = defineComposeConfig({
},
],
});

let fetchCnt = 0;
export const gatewayConfig = defineGatewayConfig({
transportEntries: {
greetings: {
options: {
apq: true,
},
},
},
plugins: () => [
{
onFetch({ options }) {
fetchCnt++;
process.stdout.write(`fetch ${fetchCnt} ${options.body}\n`);
},
},
],
});
2 changes: 1 addition & 1 deletion internal/e2e/src/tenv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export function createTenv(cwd: string): Tenv {
subgraph = await handleDockerHostName(subgraph, volumes);
}

for (const configfile of await glob('@(mesh|gateway).config.*', {
for (const configfile of await glob('gateway.config.*', {
cwd,
})) {
volumes.push({
Expand Down

0 comments on commit 86e733f

Please sign in to comment.