-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add Immutable pretty-format plugins for Immutable.OrderedSet and Immu… #2899
Merged
cpojer
merged 16 commits into
jestjs:master
from
cpenarrieta:issue-2489-pretty-immutable
Mar 6, 2017
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
899ef77
add Immutable pretty-format plugins for Immutable.OrderedSet and Immu…
cpenarrieta 0ad8b38
adding immutable pretty-format plugins
cpenarrieta 4c75854
update yarn.lock with immutable library
cpenarrieta 2cd9b50
Merge branch 'master' into issue-2489-pretty-immutable
cpenarrieta e981653
adding support for react components in Immutable pretty-format plugins
cpenarrieta 457d6b6
Merge branch 'master' into issue-2489-pretty-immutable
cpenarrieta 1e49f13
adding copyright header
cpenarrieta e7727d2
refactor printImmutable method
cpenarrieta abf1523
fix flow check
cpenarrieta bf7cf8a
Merge branch 'master' into issue-2489-pretty-immutable
cpenarrieta c12b8ac
add support for opts {min: false} for immutable plugins
cpenarrieta a4bdc74
change ES2015 spread syntax to .concat
cpenarrieta 1402e2d
add missing semicolon
cpenarrieta 81aebeb
refactor printImmutable
cpenarrieta 0f58eb2
adding trailing comma when {min: false}
cpenarrieta 7d6143d
refactor immutable tests using expect.extend toPrettyPrintTo
cpenarrieta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -13,21 +13,13 @@ | |
const chalk = require('chalk'); | ||
const prettyFormat = require('pretty-format'); | ||
const AsymmetricMatcherPlugin = require('pretty-format/build/plugins/AsymmetricMatcher'); | ||
const ImmutableOrderedSetPlugin = require('pretty-format/build/plugins/ImmutableOrderedSet'); | ||
const ImmutableListPlugin = require('pretty-format/build/plugins/ImmutableList'); | ||
const ImmutableMapPlugin = require('pretty-format/build/plugins/ImmutableMap'); | ||
const ImmutableOrderedMapPlugin = require('pretty-format/build/plugins/ImmutableOrderedMap'); | ||
const ImmutableSetPlugin = require('pretty-format/build/plugins/ImmutableSet'); | ||
const ImmutableStackPlugin = require('pretty-format/build/plugins/ImmutableStack'); | ||
const ReactElementPlugin = require('pretty-format/build/plugins/ReactElement'); | ||
const ImmutablePlugins = require('pretty-format/build/plugins/ImmutablePlugins'); | ||
|
||
const PLUGINS = [ | ||
AsymmetricMatcherPlugin, | ||
ImmutableOrderedSetPlugin, | ||
ImmutableListPlugin, | ||
ImmutableOrderedMapPlugin, | ||
ImmutableMapPlugin, | ||
ImmutableSetPlugin, | ||
ImmutableStackPlugin, | ||
ReactElementPlugin, | ||
...ImmutablePlugins, | ||
]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We also use plugins in |
||
|
||
export type ValueType = | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fail on Node 4, as array spread is supported only behind a flag. You can use
concat
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, looks like it works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, it fails in circleCI. its fixed now.