-
Notifications
You must be signed in to change notification settings - Fork 23
fix(package): update jest dependencies #21
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,32 +5,32 @@ Snapshot Diff: | |
| - First value | ||
| + Second value | ||
|
|
||
| Array [ | ||
| "foo", | ||
| - "bar", | ||
| "baz", | ||
| + "quoz", | ||
| ] | ||
| Array [ | ||
| "foo", | ||
| - "bar", | ||
| "baz", | ||
| + "quoz", | ||
| ] | ||
|
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. @SimenB do you have any ideas on why do we have extra space in the snapshots? 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. I'm not sure. It's a diff for jest 21. I'll see if I can isolate it 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. It's this: jestjs/jest@7e2c206 /cc @pedrottimark 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. Yes, that PR fixed a difference (pardon the pun :) between options:
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. 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. You guys are awesome |
||
| `; | ||
|
|
||
| exports[`serialize object diff output 1`] = ` | ||
| Snapshot Diff: | ||
| - First value | ||
| + Second value | ||
|
|
||
| Object { | ||
| - "foo": "bar", | ||
| + "foo": "baz", | ||
| } | ||
| Object { | ||
| - "foo": "bar", | ||
| + "foo": "baz", | ||
| } | ||
| `; | ||
|
|
||
| exports[`serialize text diff output 1`] = ` | ||
| Snapshot Diff: | ||
| - First value | ||
| + Second value | ||
|
|
||
| foo | ||
| -bar | ||
| baz | ||
| +quoz | ||
| foo | ||
| -bar | ||
| baz | ||
| +quoz | ||
| `; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,16 +5,17 @@ exports[`can colorize diff 1`] = ` | |
| [32m- First value[39m | ||
| [31m+ Second value[39m | ||
|
|
||
| [33m@@ -5,8 +5,9 @@[39m | ||
| [33m[39m[2m some[22m | ||
| [2m some[22m | ||
| [2m some[22m | ||
| [2m some[22m | ||
| [2m not[22m | ||
| [31m+ so[39m | ||
| [2m very[22m | ||
| [2m long[22m | ||
| [2m script[22m" | ||
| [33m@@ -5,9 +5,10 @@[39m | ||
| [2m some[22m | ||
| [2m some[22m | ||
| [2m some[22m | ||
| [2m some[22m | ||
| [2m not[22m | ||
| [31m+ so[39m | ||
| [2m very[22m | ||
| [2m long[22m | ||
| [2m script[22m | ||
| [2m [22m" | ||
| `; | ||
|
|
||
| exports[`can expand diff 1`] = ` | ||
|
|
@@ -34,7 +35,8 @@ exports[`can expand diff 1`] = ` | |
| + so | ||
| very | ||
| long | ||
| script" | ||
| script | ||
| " | ||
| `; | ||
|
|
||
| exports[`can use contextLines on diff 1`] = ` | ||
|
|
@@ -43,7 +45,7 @@ exports[`can use contextLines on diff 1`] = ` | |
| + Second value | ||
|
|
||
| @@ -10,0 +10,1 @@ | ||
| + so" | ||
| + so" | ||
| `; | ||
|
|
||
| exports[`can use contextLines with React components 1`] = ` | ||
|
|
@@ -52,31 +54,32 @@ exports[`can use contextLines with React components 1`] = ` | |
| + <Component test=\\"my name\\" /> | ||
|
|
||
| @@ -6,1 +6,1 @@ | ||
| - say | ||
| + my name | ||
| - say | ||
| + my name | ||
| @@ -9,1 +9,1 @@ | ||
| - say | ||
| + my name | ||
| - say | ||
| + my name | ||
| @@ -32,1 +32,1 @@ | ||
| - say | ||
| + my name" | ||
| - say | ||
| + my name" | ||
| `; | ||
|
|
||
| exports[`collapses diffs and strips ansi by default 1`] = ` | ||
| "Snapshot Diff: | ||
| - First value | ||
| + Second value | ||
|
|
||
| @@ -5,8 +5,9 @@ | ||
| some | ||
| some | ||
| some | ||
| some | ||
| not | ||
| + so | ||
| very | ||
| long | ||
| script" | ||
| @@ -5,9 +5,10 @@ | ||
| some | ||
| some | ||
| some | ||
| some | ||
| not | ||
| + so | ||
| very | ||
| long | ||
| script | ||
| " | ||
|
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. @thymikee This change is from jestjs/jest#4520:
|
||
| `; | ||
|
|
||
| exports[`detects React components 1`] = ` | ||
|
|
@@ -85,44 +88,44 @@ exports[`detects React components 1`] = ` | |
| + <Component test=\\"my name\\" /> | ||
|
|
||
| @@ -1,14 +1,14 @@ | ||
| <div> | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| <span> | ||
| - say | ||
| + my name | ||
| </span> | ||
| <span> | ||
| - say | ||
| + my name | ||
| </span> | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| <div> | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| <span> | ||
| - say | ||
| + my name | ||
| </span> | ||
| <span> | ||
| - say | ||
| + my name | ||
| </span> | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| @@ -27,11 +27,11 @@ | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| <span> | ||
| - say | ||
| + my name | ||
| </span> | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| <span />" | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| <span> | ||
| - say | ||
| + my name | ||
| </span> | ||
| <span /> | ||
| <span /> | ||
| <span /> | ||
| <span />" | ||
| `; | ||
|
|
||
| exports[`diffs short strings 1`] = ` | ||
| "Snapshot Diff: | ||
| - First value | ||
| + Second value | ||
|
|
||
|
|
||
| - abcx | ||
| + abcy | ||
| " | ||
| - abcx | ||
| + abcy | ||
| " | ||
| `; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,20 +20,20 @@ | |
| "react-test-renderer": ">=15" | ||
| }, | ||
| "dependencies": { | ||
| "jest-diff": "test", | ||
| "jest-snapshot": "test", | ||
| "pretty-format": "^20.0.3", | ||
| "jest-diff": "^22.0.6", | ||
| "jest-snapshot": "^22.0.6", | ||
| "pretty-format": "^22.0.6", | ||
| "strip-ansi": "^4.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "babel-cli": "^6.24.1", | ||
| "babel-preset-env": "^1.6.0", | ||
| "babel-preset-flow": "^6.23.0", | ||
| "babel-preset-react": "^6.24.1", | ||
| "eslint": "^4.3.0", | ||
| "eslint": "~4.13.0", | ||
|
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. I deleted the lockfile to update all deps within semver, and without also updating 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. Sure, good move 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 can update the eslint config in the followup PR though |
||
| "eslint-config-callstack-io": "^0.4.0", | ||
| "flow-bin": "^0.51.0", | ||
| "jest": "test", | ||
| "jest": "^22.0.6", | ||
| "react": "^15.6.1", | ||
| "react-test-renderer": "^15.6.1" | ||
| } | ||
|
|
||