-
Notifications
You must be signed in to change notification settings - Fork 410
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
Upgrade Jest and other test-related libraries #1212
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 |
---|---|---|
|
@@ -334,7 +334,6 @@ exports[`app/Home renders the install screen for the legacy add-on 1`] = ` | |
To start recording a performance profile in Firefox, first install the | ||
|
||
<a | ||
className={undefined} | ||
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 looks like that when a prop has an 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. Looks cleaner. |
||
href="https://raw.githubusercontent.com/devtools-html/Gecko-Profiler-Addon/master/gecko_profiler_legacy.xpi" | ||
onClick={[Function]} | ||
> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -369,6 +369,16 @@ Array [ | |
"rgba(255, 255, 255, 0.0)", | ||
], | ||
], | ||
"results": Array [ | ||
Object { | ||
"isThrow": false, | ||
"value": undefined, | ||
}, | ||
Object { | ||
"isThrow": false, | ||
"value": undefined, | ||
}, | ||
], | ||
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. mock functions now track results in addition to parameters, that's why we see it in the serialized version too. Looking at this snapshot, it looks like that What do you think ? I could do it directly in this PR or in a separate PR. 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 fine however you want to do it. |
||
}, | ||
}, | ||
], | ||
|
@@ -576,6 +586,16 @@ Array [ | |
"rgba(255, 255, 255, 0.0)", | ||
], | ||
], | ||
"results": Array [ | ||
Object { | ||
"isThrow": false, | ||
"value": undefined, | ||
}, | ||
Object { | ||
"isThrow": false, | ||
"value": undefined, | ||
}, | ||
], | ||
}, | ||
}, | ||
], | ||
|
@@ -880,6 +900,16 @@ Array [ | |
"rgba(255, 255, 255, 0.0)", | ||
], | ||
], | ||
"results": Array [ | ||
Object { | ||
"isThrow": false, | ||
"value": undefined, | ||
}, | ||
Object { | ||
"isThrow": false, | ||
"value": undefined, | ||
}, | ||
], | ||
}, | ||
}, | ||
], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,7 @@ exports[`app/MenuButtons renders the MenuButtons buttons 1`] = ` | |
className="menuButtonsPermalinkTextField" | ||
readOnly="readOnly" | ||
type="text" | ||
value="about:blank" | ||
value="http://localhost/" | ||
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. looks like |
||
/> | ||
</div> | ||
</div> | ||
|
@@ -271,7 +271,6 @@ exports[`app/MenuButtons renders the MenuButtons buttons 1`] = ` | |
checked={false} | ||
className="menuButtonsShareNetworkUrlsCheckbox" | ||
disabled={true} | ||
onChange={undefined} | ||
type="checkbox" | ||
/> | ||
Share the URLs of all network requests | ||
|
@@ -490,7 +489,7 @@ exports[`app/MenuButtons renders the MenuButtons buttons 2`] = ` | |
className="menuButtonsPermalinkTextField" | ||
readOnly="readOnly" | ||
type="text" | ||
value="about:blank" | ||
value="http://localhost/" | ||
/> | ||
</div> | ||
</div> | ||
|
@@ -616,7 +615,6 @@ exports[`app/MenuButtons renders the MenuButtons buttons 2`] = ` | |
checked={false} | ||
className="menuButtonsShareNetworkUrlsCheckbox" | ||
disabled={true} | ||
onChange={undefined} | ||
type="checkbox" | ||
/> | ||
Share the URLs of all network requests | ||
|
@@ -835,7 +833,7 @@ exports[`app/MenuButtons renders the MenuButtons buttons with profile.meta.netwo | |
className="menuButtonsPermalinkTextField" | ||
readOnly="readOnly" | ||
type="text" | ||
value="about:blank" | ||
value="http://localhost/" | ||
/> | ||
</div> | ||
</div> | ||
|
@@ -961,7 +959,6 @@ exports[`app/MenuButtons renders the MenuButtons buttons with profile.meta.netwo | |
checked={false} | ||
className="menuButtonsShareNetworkUrlsCheckbox" | ||
disabled={true} | ||
onChange={undefined} | ||
type="checkbox" | ||
/> | ||
Share the URLs of all network requests | ||
|
@@ -1180,7 +1177,7 @@ exports[`app/MenuButtons renders the MenuButtons buttons with profile.meta.netwo | |
className="menuButtonsPermalinkTextField" | ||
readOnly="readOnly" | ||
type="text" | ||
value="about:blank" | ||
value="http://localhost/" | ||
/> | ||
</div> | ||
</div> | ||
|
@@ -1306,7 +1303,6 @@ exports[`app/MenuButtons renders the MenuButtons buttons with profile.meta.netwo | |
checked={false} | ||
className="menuButtonsShareNetworkUrlsCheckbox" | ||
disabled={true} | ||
onChange={undefined} | ||
type="checkbox" | ||
/> | ||
Share the URLs of all network requests | ||
|
@@ -1525,7 +1521,7 @@ exports[`app/MenuButtons renders the MenuButtons buttons with profile.meta.netwo | |
className="menuButtonsPermalinkTextField" | ||
readOnly="readOnly" | ||
type="text" | ||
value="about:blank" | ||
value="http://localhost/" | ||
/> | ||
</div> | ||
</div> | ||
|
@@ -1651,7 +1647,6 @@ exports[`app/MenuButtons renders the MenuButtons buttons with profile.meta.netwo | |
checked={false} | ||
className="menuButtonsShareNetworkUrlsCheckbox" | ||
disabled={true} | ||
onChange={undefined} | ||
type="checkbox" | ||
/> | ||
Share the URLs of all network requests | ||
|
@@ -1870,7 +1865,7 @@ exports[`app/MenuButtons renders the MenuButtons buttons with profile.meta.netwo | |
className="menuButtonsPermalinkTextField" | ||
readOnly="readOnly" | ||
type="text" | ||
value="about:blank" | ||
value="http://localhost/" | ||
/> | ||
</div> | ||
</div> | ||
|
@@ -1996,7 +1991,6 @@ exports[`app/MenuButtons renders the MenuButtons buttons with profile.meta.netwo | |
checked={false} | ||
className="menuButtonsShareNetworkUrlsCheckbox" | ||
disabled={true} | ||
onChange={undefined} | ||
type="checkbox" | ||
/> | ||
Share the URLs of all network requests | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -222,7 +222,7 @@ exports[`calltree/ZipFileTree renders a zip file tree 1`] = ` | |
className="treeViewRowColumn treeViewMainColumn name" | ||
> | ||
<a | ||
href="null/from-url//calltree/?file=foo%2Fbar%2Fprofile1.json" | ||
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. again the |
||
href="http://localhost/from-url//calltree/?file=foo%2Fbar%2Fprofile1.json" | ||
onClick={[Function]} | ||
> | ||
profile1.json | ||
|
@@ -254,7 +254,7 @@ exports[`calltree/ZipFileTree renders a zip file tree 1`] = ` | |
className="treeViewRowColumn treeViewMainColumn name" | ||
> | ||
<a | ||
href="null/from-url//calltree/?file=foo%2Fprofile2.json" | ||
href="http://localhost/from-url//calltree/?file=foo%2Fprofile2.json" | ||
onClick={[Function]} | ||
> | ||
profile2.json | ||
|
@@ -313,7 +313,7 @@ exports[`calltree/ZipFileTree renders a zip file tree 1`] = ` | |
className="treeViewRowColumn treeViewMainColumn name" | ||
> | ||
<a | ||
href="null/from-url//calltree/?file=baz%2Fprofile3.json" | ||
href="http://localhost/from-url//calltree/?file=baz%2Fprofile3.json" | ||
onClick={[Function]} | ||
> | ||
profile3.json | ||
|
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.
AH the new snapshots are actually what's expected -- this means the tests weren't working properly before :/
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 is enzymejs/enzyme#1499 -- and this is a good thing !
Before this we had to call "update" everywhere (I just forgot to do it here).
I'm gonna remove them all then !I can't remove the call toupdate
anywhere else because this is only forshallow
and not formount
yet (maybe 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.
Woops.