Add "testURL" config to fix test issues (#787)

* Add "testURL" config to fix "localStorage is not available for opaque origins" problem
This commit is contained in:
Ashwin Ramaswami 2018-12-10 12:56:37 -08:00 committed by DD Liu
parent f1efb97ace
commit bce0cbbbb5

View file

@ -105,6 +105,7 @@
"raf/polyfill",
"<rootDir>/test/helpers/enzyme-setup.js"
],
"testURL": "http://localhost",
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js"