-
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9966215
commit a2904bd
Showing
4 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
require('./dist/all'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import * as matchers from '../matchers'; | ||
|
||
const jestExpect = global.expect; | ||
|
||
if (jestExpect !== undefined) { | ||
jestExpect.extend(matchers); | ||
} else { | ||
throw new Error( | ||
"Unable to find Jest's global expect. " + | ||
'Please check you have added jest-extended correctly to your jest configuration. ' + | ||
'See https://github.com/jest-community/jest-extended#setup for help.', | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1 @@ | ||
import * as matchers from './matchers'; | ||
|
||
const jestExpect = global.expect; | ||
|
||
if (jestExpect !== undefined) { | ||
jestExpect.extend(matchers); | ||
} else { | ||
/* eslint-disable no-console */ | ||
console.error( | ||
"Unable to find Jest's global expect." + | ||
'\nPlease check you have added jest-extended correctly to your jest configuration.' + | ||
'\nSee https://github.com/jest-community/jest-extended#setup for help.', | ||
); | ||
/* eslint-enable no-console */ | ||
} | ||
export * from './matchers'; |