Skip to content

Commit 429a8ce

Browse files
committed
Format
1 parent 3266d69 commit 429a8ce

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed
Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
import { HiveGatewayDriver, HiveGatewayDriverConfig } from "@graphql-hive/nestjs";
2-
import { Opts } from "@internal/testing";
3-
import { Module } from "@nestjs/common";
4-
import { GraphQLModule } from "@nestjs/graphql";
1+
import {
2+
HiveGatewayDriver,
3+
HiveGatewayDriverConfig,
4+
} from '@graphql-hive/nestjs';
5+
import { Opts } from '@internal/testing';
6+
import { Module } from '@nestjs/common';
7+
import { GraphQLModule } from '@nestjs/graphql';
58

69
const opts = Opts(process.argv);
710
const supergraph = opts.get('supergraph', true);
811

912
@Module({
10-
imports: [
11-
GraphQLModule.forRoot<HiveGatewayDriverConfig>({
12-
driver: HiveGatewayDriver,
13-
supergraph,
14-
}),
15-
],
13+
imports: [
14+
GraphQLModule.forRoot<HiveGatewayDriverConfig>({
15+
driver: HiveGatewayDriver,
16+
supergraph,
17+
}),
18+
],
1619
})
17-
export class AppModule { }
20+
export class AppModule {}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { NestFactory } from "@nestjs/core";
2-
import { AppModule } from "./app.module";
3-
import { Opts } from "@internal/testing";
1+
import { Opts } from '@internal/testing';
2+
import { NestFactory } from '@nestjs/core';
3+
import { AppModule } from './app.module';
44

55
const opts = Opts(process.argv);
66
const port = opts.getServicePort('nestjs', true);
77

88
async function main() {
9-
const app = await NestFactory.create(AppModule);
10-
await app.listen(port);
9+
const app = await NestFactory.create(AppModule);
10+
await app.listen(port);
1111
}
1212

1313
main().catch((err) => {
14-
console.error(err);
15-
process.exit(1);
14+
console.error(err);
15+
process.exit(1);
1616
});

packages/nestjs/tests/nestjs.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
import { buildSubgraphSchema } from '@apollo/subgraph';
2-
import { AsyncDisposableStack } from '@whatwg-node/disposablestack';
3-
import {
4-
HiveGatewayDriver,
5-
HiveGatewayDriverConfig,
6-
} from '../src';
72
import {
83
composeLocalSchemasWithApollo,
94
createDisposableServer,
105
} from '@internal/testing';
116
import { INestApplication } from '@nestjs/common';
127
import { GraphQLModule } from '@nestjs/graphql';
138
import { Test } from '@nestjs/testing';
9+
import { AsyncDisposableStack } from '@whatwg-node/disposablestack';
1410
import { parse } from 'graphql';
1511
import { createYoga } from 'graphql-yoga';
1612
import supertest from 'supertest';
1713
import { afterAll, beforeAll, describe, it } from 'vitest';
14+
import { HiveGatewayDriver, HiveGatewayDriverConfig } from '../src';
1815

1916
describe.skipIf(process.env['LEAK_TEST'])('NestJS', () => {
2017
let app: INestApplication;

0 commit comments

Comments
 (0)