Skip to content

Commit

Permalink
test: re-add gql spec
Browse files Browse the repository at this point in the history
Was failing due to invalid lockfile and deps from it
  • Loading branch information
jmcdo29 committed Jun 16, 2023
1 parent 63830e7 commit 169b135
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 2 additions & 3 deletions integration/test/gql.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
10 changes: 6 additions & 4 deletions integration/test/utils/createModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function createTestModule(
options: OgmaModuleOptions,
providers: Type<AbstractInterceptorService>[] = [],
): Promise<TestingModule> {
return Test.createTestingModule({
const module = Test.createTestingModule({
imports: [AppModule, OgmaModule.forRoot(options)],
providers: [
OgmaInterceptor,
Expand All @@ -19,7 +19,9 @@ export async function createTestModule(
},
...providers,
],
})
.setLogger(console)
.compile();
});
if (!process.env.CI) {
module.setLogger(console);
}
return module.compile();
}

0 comments on commit 169b135

Please sign in to comment.