-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from icd2k3/fix-enum-and-logging
Fix enum type warning and better warning messages
- Loading branch information
Showing
10 changed files
with
266 additions
and
232 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
examples/ComponentWithoutProps/__tests__/ComponentWithoutProps.test.js
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,4 +1,4 @@ | ||
import ComponentWithoutProps from '../ComponentWithoutProps'; | ||
import snap from 'jest-auto-snapshots'; | ||
import ComponentWithoutProps from '../ComponentWithoutProps'; | ||
|
||
snap(ComponentWithoutProps, '../ComponentWithoutProps.jsx'); |
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,4 +1,4 @@ | ||
import snap from 'jest-auto-snapshots'; | ||
import CustomProps from '../CustomProps'; | ||
|
||
snap(CustomProps, '../CustomProps.jsx', { fixturesByPropType: { customProp: 'customproptest' } }); | ||
snap(CustomProps, '../CustomProps.jsx', { fixturesByPropType: { customPropType: 'customproptest' } }); |
6 changes: 5 additions & 1 deletion
6
examples/CustomProps/__tests__/__snapshots__/CustomProps.test.js.snap
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,3 +1,7 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`jest-auto-snapshots > CustomProps Matches snapshot when passed all props 1`] = `<div />`; | ||
exports[`jest-auto-snapshots > CustomProps Matches snapshot when passed all props 1`] = ` | ||
<div> | ||
customproptest | ||
</div> | ||
`; |
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
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
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
Oops, something went wrong.