Skip to content

Commit

Permalink
fix: set url option for jsdom-global (vuejs#3131)
Browse files Browse the repository at this point in the history
This fixes `SecurityError: localStorage is not available for opaque origins` in mocha tests caused by jsdom (jsdom/jsdom#2304).
  • Loading branch information
michaelkhabarov authored and haoqunjiang committed Dec 28, 2018
1 parent 056ba07 commit 8d81e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vue/cli-plugin-unit-mocha/setup.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require('jsdom-global')(undefined, { pretendToBeVisual: true })
require('jsdom-global')(undefined, { pretendToBeVisual: true, url: 'http://localhost' })

0 comments on commit 8d81e51

Please sign in to comment.