-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove older unused packages and resolutions
- Loading branch information
Showing
86 changed files
with
737 additions
and
809 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
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
it('Creating react element using React.cloneElement', () => { | ||
cy.visitAndSpyConsole('/#cloneElement', console => { | ||
expect(console.group).to.be.calledWithMatches([ | ||
{ match: 'TestComponent', times: 1 }, | ||
{match: 'TestComponent', times: 1}, | ||
]); | ||
|
||
expect(console.log).to.be.calledWithMatches([ | ||
{ match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal.'], times: 1 }, | ||
{match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal.'], times: 1}, | ||
]); | ||
}); | ||
}); |
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,11 +1,11 @@ | ||
it('Creating react element using React.createFactory', () => { | ||
cy.visitAndSpyConsole('/#createFactory', console => { | ||
expect(console.group).to.be.calledWithMatches([ | ||
{ match: 'TestComponent', times: 1 }, | ||
{match: 'TestComponent', times: 1}, | ||
]); | ||
|
||
expect(console.log).to.be.calledWithMatches([ | ||
{ match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal.'], times: 1 }, | ||
{match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal.'], times: 1}, | ||
]); | ||
}); | ||
}); |
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,16 +1,16 @@ | ||
it('Hooks - useContext', () => { | ||
cy.visitAndSpyConsole('/#useContext', console => { | ||
expect(console.group).to.be.calledWithMatches([ | ||
{ match: /ComponentWithContextHook$/, times: 2 }, | ||
{ match: 'Rendered by Main', times: 1 }, | ||
{ match: 'ComponentWithContextHookInsideMemoizedParent', times: 1 }, | ||
{ match: '[hook useState result]', times: 1 }, | ||
{ match: '[hook useContext result]', times: 2 }, | ||
{match: /ComponentWithContextHook$/, times: 2}, | ||
{match: 'Rendered by Main', times: 1}, | ||
{match: 'ComponentWithContextHookInsideMemoizedParent', times: 1}, | ||
{match: '[hook useState result]', times: 1}, | ||
{match: '[hook useContext result]', times: 2}, | ||
]); | ||
|
||
expect(console.log).to.be.calledWithMatches([ | ||
{ match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal.'], times: 1 }, | ||
{ match: [() => true, 'Re-rendered because of hook changes'], times: 3 }, | ||
{match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal.'], times: 1}, | ||
{match: [() => true, 'Re-rendered because of hook changes'], times: 3}, | ||
]); | ||
}); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
it('React Hot Reload Of Tracked Component', () => { | ||
cy.visitAndSpyConsole('/#hotReload', console => { | ||
expect(console.group).to.be.calledWithMatches([ | ||
{ match: 'HotExportedDemoComponent', times: 1 }, | ||
{match: 'HotExportedDemoComponent', times: 1}, | ||
]); | ||
|
||
expect(console.log).to.be.calledWithMatches([ | ||
{ match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal.'], times: 1 }, | ||
{match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal.'], times: 1}, | ||
]); | ||
}); | ||
}); |
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,11 +1,11 @@ | ||
it('No Changes', () => { | ||
cy.visitAndSpyConsole('/#noChanges', console => { | ||
expect(console.group).to.be.calledWithMatches([ | ||
{ match: 'ClassDemo', times: 1 }, | ||
{match: 'ClassDemo', times: 1}, | ||
]); | ||
|
||
expect(console.log).to.be.calledWithMatches([ | ||
{ match: [() => true, 'Re-rendered although props and state objects are the same.'], times: 1 }, | ||
{match: [() => true, 'Re-rendered although props and state objects are the same.'], times: 1}, | ||
]); | ||
}); | ||
}); |
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,20 +1,20 @@ | ||
it('Log Owner Reasons', () => { | ||
cy.visitAndSpyConsole('/#logOwnerReasons', console => { | ||
expect(console.group).to.be.calledWithMatches([ | ||
{ match: 'Child', times: 3 }, | ||
{ match: 'Rendered by Owner', times: 1 }, | ||
{ match: 'Rendered by ClassOwner', times: 1 }, | ||
{ match: 'Rendered by HooksOwner', times: 1 }, | ||
{ match: /props.*a\W/, times: 1 }, | ||
{ match: '[hook useState result]', times: 2 }, | ||
{match: 'Child', times: 3}, | ||
{match: 'Rendered by Owner', times: 1}, | ||
{match: 'Rendered by ClassOwner', times: 1}, | ||
{match: 'Rendered by HooksOwner', times: 1}, | ||
{match: /props.*a\W/, times: 1}, | ||
{match: '[hook useState result]', times: 2}, | ||
]); | ||
|
||
expect(console.log).to.be.calledWithMatches([ | ||
{ match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal'], times: 3 }, | ||
{ match: [() => true, 'Re-rendered because of props changes'], times: 1 }, | ||
{ match: [() => true, 'Re-rendered because of state changes'], times: 1 }, | ||
{ match: [() => true, 'Re-rendered because of hook changes'], times: 2 }, | ||
{ match: 'different objects.', times: 4 }, | ||
{match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal'], times: 3}, | ||
{match: [() => true, 'Re-rendered because of props changes'], times: 1}, | ||
{match: [() => true, 'Re-rendered because of state changes'], times: 1}, | ||
{match: [() => true, 'Re-rendered because of hook changes'], times: 2}, | ||
{match: 'different objects.', times: 4}, | ||
]); | ||
}); | ||
}); |
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,13 +1,13 @@ | ||
it('Props And State Changes', () => { | ||
cy.visitAndSpyConsole('/#bothChanges', console => { | ||
expect(console.group).to.be.calledWithMatches([ | ||
{ match: 'ClassDemo', times: 1 }, | ||
{ match: /props.*a\W/, times: 1 }, | ||
{ match: /state.*c\W/, times: 1 }, | ||
{match: 'ClassDemo', times: 1}, | ||
{match: /props.*a\W/, times: 1}, | ||
{match: /state.*c\W/, times: 1}, | ||
]); | ||
|
||
expect(console.log).to.be.calledWithMatches([ | ||
{ match: 'different objects that are equal by value.', times: 2 }, | ||
{match: 'different objects that are equal by value.', times: 2}, | ||
]); | ||
}); | ||
}); |
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,10 +1,10 @@ | ||
it('props changes', () => { | ||
cy.visitAndSpyConsole('/#propsChanges', console => { | ||
expect(console.group).to.be.calledWithMatches([ | ||
{ match: 'ClassDemo', times: 5 }, | ||
{ match: 'Rendered by Main', times: 5 }, | ||
{ match: /props.*a\W/, times: 4 }, | ||
{ match: /props.*containerProps\W/, times: 4 }, | ||
{match: 'ClassDemo', times: 5}, | ||
{match: 'Rendered by Main', times: 5}, | ||
{match: /props.*a\W/, times: 4}, | ||
{match: /props.*containerProps\W/, times: 4}, | ||
]); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
it('Special Changes', () => { | ||
cy.visitAndSpyConsole('/#specialChanges', console => { | ||
expect(console.group).to.be.calledWithMatches([ | ||
{ match: 'ClassDemo', times: 1 }, | ||
{match: 'ClassDemo', times: 1}, | ||
]); | ||
|
||
expect(console.log).to.be.calledWithMatches([ | ||
{ match: 'different regular expressions with the same value.', times: 1 }, | ||
{ match: 'different functions with the same name.', times: 1 }, | ||
{ match: 'different date objects with the same value.', times: 1 }, | ||
{ match: 'different React elements (remember that the <jsx/> syntax always produces a *NEW* immutable React element', times: 1 }, | ||
{match: 'different regular expressions with the same value.', times: 1}, | ||
{match: 'different functions with the same name.', times: 1}, | ||
{match: 'different date objects with the same value.', times: 1}, | ||
{match: 'different React elements (remember that the <jsx/> syntax always produces a *NEW* immutable React element', times: 1}, | ||
]); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
it('state changes', () => { | ||
cy.visitAndSpyConsole('/#stateChanges', console => { | ||
expect(console.group).to.be.calledWithMatches([ | ||
{ match: 'ClassDemo', times: 2 }, | ||
{ match: /state.*objectKey\W/, times: 1 }, | ||
{match: 'ClassDemo', times: 2}, | ||
{match: /state.*objectKey\W/, times: 1}, | ||
]); | ||
|
||
expect(console.log).to.be.calledWithMatches([ | ||
{ match: [() => true, 'Re-rendered because the state object itself changed but its values are all equal'], times: 1 }, | ||
{match: [() => true, 'Re-rendered because the state object itself changed but its values are all equal'], times: 1}, | ||
]); | ||
}); | ||
}); |
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,14 +1,14 @@ | ||
it('Strict mode', () => { | ||
cy.visitAndSpyConsole('/#strict', console => { | ||
expect(console.group).to.be.calledWithMatches([ | ||
{ match: 'ClassDemo', times: 3 }, | ||
{ match: 'Rendered by Main', times: 3 }, | ||
{ match: /props.*a\W/, times: 4 }, | ||
{match: 'ClassDemo', times: 3}, | ||
{match: 'Rendered by Main', times: 3}, | ||
{match: /props.*a\W/, times: 4}, | ||
]); | ||
|
||
expect(console.log).to.be.calledWithMatches([ | ||
{ match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal.'], times: 2 }, | ||
{ match: 'different objects that are equal by value', times: 4 }, | ||
{match: [() => true, 'Re-rendered because the props object itself changed but its values are all equal.'], times: 2}, | ||
{match: 'different objects that are equal by value', times: 4}, | ||
]); | ||
}); | ||
}); |
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.