Skip to content

Commit

Permalink
fix: apply a workaround for the prettier / jsdom-global bug
Browse files Browse the repository at this point in the history
Since this issue is not going to get a proper fix any time soon,
this workaround is better than pinning prettier version in
`@vue/component-compiler-utils`
  • Loading branch information
sodatea committed Jan 29, 2019
1 parent 9c1e797 commit bca6edc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/@vue/cli-plugin-unit-mocha/setup.js
@@ -1 +1,4 @@
require('jsdom-global')(undefined, { pretendToBeVisual: true, url: 'http://localhost' })

// https://github.com/vuejs/vue-test-utils/issues/936
window.Date = Date

0 comments on commit bca6edc

Please sign in to comment.