We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
filterBrowserLogs
web-test-runner
1 parent 50951d2 commit 1e1f211Copy full SHA for 1e1f211
web-test-runner.config.mjs
@@ -3,8 +3,22 @@ import { fromRollup } from '@web/dev-server-rollup'
3
4
const json = fromRollup(rollupJson)
5
6
+const filteredLogs = [
7
+ 'Lit is in dev mode. Not recommended for production! See https://lit.dev/msg/dev-mode for more information.'
8
+]
9
+
10
+const filterBrowserLogs = (log) => {
11
+ for (const arg of log.args) {
12
+ if (typeof arg === 'string' && filteredLogs.some(l => arg.includes(l))) {
13
+ return false
14
+ }
15
16
+ return true
17
+}
18
19
export default {
20
nodeResolve: true,
21
+ filterBrowserLogs,
22
mimeTypes: {
23
'**/*.json': 'js'
24
},
0 commit comments