Fix jest config so that it would run on Ubuntu correctly.

This commit is contained in:
Oleksii Trekhleb 2018-08-16 13:36:58 +03:00
parent 3ea570869e
commit a191adeae3

View File

@ -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/',
};