Skip to content

Commit

Permalink
Quiet some test warnings, use test-silent everywhere in ci (#1885)
Browse files Browse the repository at this point in the history
  • Loading branch information
whscullin authored Sep 9, 2024
1 parent 89920bc commit dc41926
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/db-presto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
npm run build
npm run build-duckdb-db
./test/presto/presto_start.sh
npm run test packages/malloy-db-trino
npm run test test
npm run test-silent -- -- packages/malloy-db-trino
npm run test-silent -- -- test
./test/presto/presto_stop.sh
env:
MALLOY_DATABASES: presto
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/db-trino.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
npm run build
npm run build-duckdb-db
./test/trino/trino_start.sh
npm run test packages/malloy-db-trino
npm run test test
npm run test-silent -- -- packages/malloy-db-trino
npm run test-silent -- -- test
./test/trino/trino_stop.sh
env:
MALLOY_DATABASES: trino
Expand Down
5 changes: 5 additions & 0 deletions test/src/render/drill.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ describe('drill query', () => {
query: by_origin is flights -> by_origin
query: no_filter is flights -> no_filter
`;

beforeEach(() => {
jest.spyOn(console, 'warn').mockImplementation(() => {});
});

test('can handle joined-in table fields', async () => {
const result = duckdb
.loadModel(model)
Expand Down
4 changes: 4 additions & 0 deletions test/src/render/render.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ const duckdb = runtimeFor('duckdb');
describe('rendering results', () => {
const runtimes = new RuntimeList(databases);

beforeEach(() => {
jest.spyOn(console, 'warn').mockImplementation(() => {});
});

afterAll(async () => {
await runtimes.closeAll();
});
Expand Down

0 comments on commit dc41926

Please sign in to comment.