Skip to content

Commit bca6edc

Browse files
committedJan 29, 2019
fix: apply a workaround for the prettier / jsdom-global bug
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`
1 parent 9c1e797 commit bca6edc

File tree

1 file changed

+3
-0
lines changed
  • packages/@vue/cli-plugin-unit-mocha

1 file changed

+3
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
require('jsdom-global')(undefined, { pretendToBeVisual: true, url: 'http://localhost' })
2+
3+
// https://github.com/vuejs/vue-test-utils/issues/936
4+
window.Date = Date

0 commit comments

Comments
 (0)
Please sign in to comment.