Skip to content

Commit

Permalink
fix: suppress Vue warning in test
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Dec 15, 2023
1 parent b9b7f69 commit f092a9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 5 additions & 1 deletion test/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import Vue from 'vue'
import Vuetify from 'vuetify/lib'
Vue.config.devtools = false
Vue.config.productionTip = false

// import vuetify after suppressing devtools warning
const Vuetify = (await import('vuetify/lib')).default

Vue.use(Vuetify)

Expand Down
4 changes: 0 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,5 @@ export default defineConfig({
include: ['test/**/*.test.ts', 'src/**/__tests__/*'],
environment: 'jsdom',
setupFiles: ['./test/vitest.setup.ts'],
onConsoleLog(log) {
if (log.includes('Download the Vue Devtools extension')) return false
if (log.includes('Lit is in dev mode.')) return false
},
},
})

0 comments on commit f092a9a

Please sign in to comment.