diff --git a/package-lock.json b/package-lock.json index fd0ed95..9d4898d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@rei/vunit", - "version": "1.4.0", + "version": "1.4.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 176f0f3..b643178 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@rei/vunit", "description": "Write unit tests against your Vue components using mocha and vue-test-utils", - "version": "1.4.0", + "version": "1.4.1", "author": "Alex Perkins ", "repository": "https://github.com/rei/vunit", "license": "MIT", diff --git a/setup.js b/setup.js index 865ed38..71a2129 100644 --- a/setup.js +++ b/setup.js @@ -2,7 +2,10 @@ process.stdout.write('Setting up JSDOM...'); require('jsdom-global')(); -// https://github.com/vuejs/vue-test-utils/issues/936#issuecomment-415386167 +// See https://github.com/vuejs/vue/issues/9698 +global.performance = window.performance; + +// See https://github.com/vuejs/vue-test-utils/issues/936#issuecomment-415386167 window.Date = Date; if (window && window.document) {