mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-25 06:16:11 +08:00
Fix jest config so that it would run on Ubuntu correctly.
This commit is contained in:
parent
3ea570869e
commit
a191adeae3
@ -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/',
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user