Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a191ade

Browse files
committed
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‎

Lines changed: 4 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /