From 169b135e7ee679b2ffe99321e9dc38a0836c6c1e Mon Sep 17 00:00:00 2001 From: Jay McDoniel Date: Fri, 16 Jun 2023 12:23:56 -0700 Subject: [PATCH] test: re-add gql spec Was failing due to invalid lockfile and deps from it --- integration/test/gql.spec.ts | 5 ++--- integration/test/utils/createModule.ts | 10 ++++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/integration/test/gql.spec.ts b/integration/test/gql.spec.ts index 645ffd677..dc5a808e0 100644 --- a/integration/test/gql.spec.ts +++ b/integration/test/gql.spec.ts @@ -114,9 +114,8 @@ for (const { adapter, server, parser, driver } of [ 'query', '/graphql', 'HTTP/1.1', - style.yellow.apply(403), + style.yellow().apply(403), ); }); - console.log('Skipping GraphQL tests for strange injection dependency bug'); - // GqlParserSuite.run(); + GqlParserSuite.run(); } diff --git a/integration/test/utils/createModule.ts b/integration/test/utils/createModule.ts index ac6c9bac8..c78e0a975 100644 --- a/integration/test/utils/createModule.ts +++ b/integration/test/utils/createModule.ts @@ -9,7 +9,7 @@ export async function createTestModule( options: OgmaModuleOptions, providers: Type[] = [], ): Promise { - return Test.createTestingModule({ + const module = Test.createTestingModule({ imports: [AppModule, OgmaModule.forRoot(options)], providers: [ OgmaInterceptor, @@ -19,7 +19,9 @@ export async function createTestModule( }, ...providers, ], - }) - .setLogger(console) - .compile(); + }); + if (!process.env.CI) { + module.setLogger(console); + } + return module.compile(); }