Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Feb 14, 2025
1 parent b4b508e commit 83cf7eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions e2e/nestjs/nestjs.e2e.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
createExampleSetup,
createTenv,
} from '@internal/e2e';
import { createExampleSetup, createTenv } from '@internal/e2e';
import { getLocalhost } from '@internal/testing';
import { fetch } from '@whatwg-node/fetch';
import { expect, it } from 'vitest';
Expand All @@ -12,9 +9,7 @@ const { supergraph, query, result } = createExampleSetup(__dirname);
it('executes the query', async () => {
const supergraphPath = await supergraph();
const { port } = await service('nestjs', {
args: [
`--supergraph=${supergraphPath}`,
]
args: [`--supergraph=${supergraphPath}`],
});
const hostname = await getLocalhost(port);
const response = await fetch(`${hostname}:${port}/graphql`, {
Expand Down
2 changes: 1 addition & 1 deletion e2e/nestjs/services/nestjs/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Opts } from '@internal/testing';
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { Opts } from '@internal/testing';

const opts = Opts(process.argv);

Expand Down

0 comments on commit 83cf7eb

Please sign in to comment.