Skip to content

Commit

Permalink
test: fix suppressing vue experimental warning (vitejs#7297)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Mar 12, 2022
1 parent bf57c53 commit 84fa816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/jestEnv.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ module.exports = class PlaywrightEnvironment extends NodeEnvironment {
}))
this.global.page = await browser.newPage()

// suppress @vue/compiler-sfc warning
// suppress @vue/ref-transform warning
const console = this.global.console
const warn = console.warn
console.warn = (msg, ...args) => {
if (!msg.includes('@vue/compiler-sfc')) {
if (!msg.includes('@vue/ref-transform')) {
warn.call(console, msg, ...args)
}
}
Expand Down

0 comments on commit 84fa816

Please sign in to comment.