Skip to content

Commit

Permalink
fix(infra): suppress useless test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
daneah committed Jan 25, 2025
1 parent 7ffb32c commit 5842b97
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/pharos/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
import { playwrightLauncher } from '@web/test-runner-playwright';

const silencedLogs = ['Lit is in dev mode.', 'Multiple versions of Lit loaded.'];

export default {
files: ['lib/**/*.test.js'],
nodeResolve: true,
concurrentBrowsers: 3,
coverage: true,
testsStartTimeout: 30000,
filterBrowserLogs(log) {
for (const arg of log.args) {
if (typeof arg === 'string' && silencedLogs.some((l) => arg.includes(l))) {
return false;
}
}
return true;
},
coverageConfig: {
threshold: {
statements: 98,
Expand Down

0 comments on commit 5842b97

Please sign in to comment.