Skip to content

Commit

Permalink
[MOVE ME] add setLogger call in driver tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mcheshkov committed Nov 3, 2024
1 parent a658b20 commit 31b00ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cubejs-testing-drivers/src/helpers/getDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export async function getDriver(type: string): Promise<{
return import(`@cubejs-backend/${type}-driver`).then((module) => {
// eslint-disable-next-line new-cap
const source: BaseDriver = new module.default();
source.setLogger((msg: unknown, event: unknown) => console.log(`${msg}: ${JSON.stringify(event)}`));
const storage = new CubeStoreDriver();
return { source, storage };
});
Expand Down

0 comments on commit 31b00ee

Please sign in to comment.