mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-09 09:00:16 -05:00
fix: set url option for jsdom-global (#3131)
This fixes `SecurityError: localStorage is not available for opaque origins` in mocha tests caused by jsdom (jsdom/jsdom#2304).
This commit is contained in:
committed by
Haoqun Jiang
parent
056ba0772c
commit
8d81e51aa8
@@ -1 +1 @@
|
||||
require('jsdom-global')(undefined, { pretendToBeVisual: true })
|
||||
require('jsdom-global')(undefined, { pretendToBeVisual: true, url: 'http://localhost' })
|
||||
|
||||
Reference in New Issue
Block a user