Skip to content

Commit

Permalink
chore: ignore empty chunk test warning (#8063)
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored May 8, 2022
1 parent 9398488 commit cc3129e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/jestEnv.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ module.exports = class PlaywrightEnvironment extends NodeEnvironment {
}))
this.global.page = await browser.newPage()

// suppress @vue/ref-transform warning
const console = this.global.console
const warn = console.warn
console.warn = (msg, ...args) => {
if (!msg.includes('@vue/ref-transform')) {
warn.call(console, msg, ...args)
}
// suppress @vue/ref-transform warning
if (msg.includes('@vue/ref-transform')) return
if (msg.includes('Generated an empty chunk')) return
warn.call(console, msg, ...args)
}
}

Expand Down

0 comments on commit cc3129e

Please sign in to comment.