Skip to content

Commit

Permalink
test(testing-drivers): Set logger to simple console wrapper in driver…
Browse files Browse the repository at this point in the history
… tests
  • Loading branch information
mcheshkov committed Nov 12, 2024
1 parent 1702928 commit 32e6748
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 32e6748

Please sign in to comment.