Skip to content

Commit

Permalink
fix(test/helpers): bind console logger to helper container
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Sep 1, 2019
1 parent 9718f51 commit b0f67b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/helpers/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ export class TestModule extends Module {
export async function createContainer(...modules: Array<Module>): Promise<{ container: Container, module: Module }> {
const module = new TestModule();
const container = Container.from(module, ...modules);
container.logger = ConsoleLogger.global;
await container.configure();
await container.configure({
logger: ConsoleLogger.global,
});
return { container, module };
}

Expand Down

0 comments on commit b0f67b0

Please sign in to comment.