From a191adeae342d5f62677925dc15c9d48abc73fd8 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Thu, 16 Aug 2018 13:36:58 +0300 Subject: [PATCH] Fix jest config so that it would run on Ubuntu correctly. --- jest.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jest.config.js b/jest.config.js index c69befc8..06e76526 100644 --- a/jest.config.js +++ b/jest.config.js @@ -21,5 +21,8 @@ module.exports = { // The pattern Jest uses to detect test files. testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.jsx?$', - testURL: 'http://localhost/' + // This option sets the URL for the jsdom environment. + // It is reflected in properties such as location.href. + // @see: https://github.com/facebook/jest/issues/6769 + testURL: 'http://localhost/', };