Files
vue-cli/packages/@vue/cli-plugin-unit-mocha/setup.js
Haoqun Jiang bca6edc7aa 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`
2019-01-29 11:59:07 +08:00

5 lines
163 B
JavaScript

require('jsdom-global')(undefined, { pretendToBeVisual: true, url: 'http://localhost' })
// https://github.com/vuejs/vue-test-utils/issues/936
window.Date = Date