File tree Expand file tree Collapse file tree 3 files changed +23
-23
lines changed
e2e/nestjs/services/nestjs Expand file tree Collapse file tree 3 files changed +23
-23
lines changed Original file line number Diff line number Diff line change 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
69const opts = Opts ( process . argv ) ;
710const 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 { }
Original file line number Diff line number Diff line change 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
55const opts = Opts ( process . argv ) ;
66const port = opts . getServicePort ( 'nestjs' , true ) ;
77
88async 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
1313main ( ) . catch ( ( err ) => {
14- console . error ( err ) ;
15- process . exit ( 1 ) ;
14+ console . error ( err ) ;
15+ process . exit ( 1 ) ;
1616} ) ;
Original file line number Diff line number Diff line change 11import { buildSubgraphSchema } from '@apollo/subgraph' ;
2- import { AsyncDisposableStack } from '@whatwg-node/disposablestack' ;
3- import {
4- HiveGatewayDriver ,
5- HiveGatewayDriverConfig ,
6- } from '../src' ;
72import {
83 composeLocalSchemasWithApollo ,
94 createDisposableServer ,
105} from '@internal/testing' ;
116import { INestApplication } from '@nestjs/common' ;
127import { GraphQLModule } from '@nestjs/graphql' ;
138import { Test } from '@nestjs/testing' ;
9+ import { AsyncDisposableStack } from '@whatwg-node/disposablestack' ;
1410import { parse } from 'graphql' ;
1511import { createYoga } from 'graphql-yoga' ;
1612import supertest from 'supertest' ;
1713import { afterAll , beforeAll , describe , it } from 'vitest' ;
14+ import { HiveGatewayDriver , HiveGatewayDriverConfig } from '../src' ;
1815
1916describe . skipIf ( process . env [ 'LEAK_TEST' ] ) ( 'NestJS' , ( ) => {
2017 let app : INestApplication ;
You can’t perform that action at this time.
0 commit comments