From bce0cbbbb573b5d77577708ac516b719a2718994 Mon Sep 17 00:00:00 2001 From: Ashwin Ramaswami Date: Mon, 10 Dec 2018 12:56:37 -0800 Subject: [PATCH] Add "testURL" config to fix test issues (#787) * Add "testURL" config to fix "localStorage is not available for opaque origins" problem --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index c9a3d525..699a1f6f 100644 --- a/package.json +++ b/package.json @@ -105,6 +105,7 @@ "raf/polyfill", "/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)$": "/test/__mocks__/fileMock.js", "\\.(css|less)$": "/test/__mocks__/styleMock.js"