Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add testURL setting to Jest configuration
The default URL `about:blank` will not work with jsdom's strict localStorage
implementation.
  • Loading branch information
yhatt committed Aug 3, 2018
commit 385a94de9ad825bfa240361249db4b79861e4386
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ module.exports = {
'^.*\\.s?css$': '<rootDir>/test/_transformers/css.ts',
},
testRegex: '(/(test|__tests__)/(?!_).*|(\\.|/)(test|spec))\\.[jt]s$',
testURL: 'http://localhost/',
moduleFileExtensions: ['ts', 'js', 'json', 'node'],
}