We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
filterBrowserLogs
web-test-runner
1 parent 5b84d4b commit de2acf2Copy full SHA for de2acf2
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