Skip to content

Commit a191ade

Browse files
committedAug 16, 2018
Fix jest config so that it would run on Ubuntu correctly.
1 parent 3ea5708 commit a191ade

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎jest.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ module.exports = {
2121
// The pattern Jest uses to detect test files.
2222
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.jsx?$',
2323

24-
testURL: 'http://localhost/'
24+
// This option sets the URL for the jsdom environment.
25+
// It is reflected in properties such as location.href.
26+
// @see: https://github.com/facebook/jest/issues/6769
27+
testURL: 'http://localhost/',
2528
};

0 commit comments

Comments
 (0)
Please sign in to comment.