-
Notifications
You must be signed in to change notification settings - Fork 71
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
Update jest-cli to 29.7.0 #1094
base: main
Are you sure you want to change the base?
Update jest-cli to 29.7.0 #1094
Conversation
Signed-off-by: Josh Romero <[email protected]>
Signed-off-by: Josh Romero <[email protected]>
@@ -117,7 +117,7 @@ describe('OuiCodeEditor', () => { | |||
expect(blurSpy).toHaveBeenCalled(); | |||
}); | |||
|
|||
test('pressing escape in ace textbox will enable overlay', () => { | |||
test.skip('pressing escape in ace textbox will enable overlay', () => { |
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.
We should make a followup issue if we decide to merge this without unskipping these
|
||
jest.spyOn(colorPickerAnchor, 'focus'); | ||
|
||
expect(colorPickerAnchor.focus).not.toHaveBeenCalled(); |
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.
Why do we check if it hasn't been called before doing anything?
thumbs.first().simulate('keydown', { | ||
key: keys.ARROW_DOWN, | ||
}); | ||
expect(thumbs.at(1).getDOMNode()).toEqual(document.activeElement); | ||
|
||
expect(thumbs0.focus).toHaveBeenCalledTimes(1); |
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.
Is it possible to reset call count before the key down?
@@ -580,16 +580,16 @@ describe('OuiDataGrid', () => { | |||
return props; | |||
}) | |||
).toMatchInlineSnapshot(` |
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.
We should make a good first issue to remove inline snapshots
}); | ||
|
||
it('should not call fn immediately', async () => { | ||
const instance = new AsyncInterval(spy, 1000); |
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.
Why do we need to do this in each test instead of in the beforeEach
?
@@ -58,7 +58,8 @@ describe('OuiErrorBoundary', () => { | |||
|
|||
test('is rendered with an error', () => { | |||
// Prevent the React boundary error from appearing in the terminal. | |||
spyOn(console, 'error'); // eslint-disable-line no-undef |
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.
Why do we change this?
@@ -25,7 +25,6 @@ exports[`OuiToolTip shows tooltip on focus 1`] = ` | |||
class="ouiToolTipAnchor" | |||
> | |||
<button | |||
aria-describedby="id" |
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.
It makes sense that this was deleted, but why?
Setting to draft in favor of #1102 |
Description
Issues Resolved
Fixes #630
Check List
yarn lint
yarn test-unit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.