Skip to content

Commit 385a94d

Browse files
committed
Add testURL setting to Jest configuration
The default URL `about:blank` will not work with jsdom's strict localStorage implementation.
1 parent 7e7b442 commit 385a94d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ module.exports = {
66
'^.*\\.s?css$': '<rootDir>/test/_transformers/css.ts',
77
},
88
testRegex: '(/(test|__tests__)/(?!_).*|(\\.|/)(test|spec))\\.[jt]s$',
9+
testURL: 'http://localhost/',
910
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
1011
}

0 commit comments

Comments
 (0)