-
Notifications
You must be signed in to change notification settings - Fork 0
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
TS fixes #22
TS fixes #22
Conversation
@@ -5,3 +5,5 @@ export { EuiSteps } from './steps'; | |||
export { EuiSubSteps } from './sub_steps'; | |||
|
|||
export { EuiStepsHorizontal } from './steps_horizontal'; | |||
|
|||
export { EuiStepStatus } from './step_number'; |
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.
Kibana imports and uses this type directly
<EuiI18n | ||
token="euiStep.ariaLabel" | ||
default={({ status }) => { | ||
default={({ status }: { status?: EuiStepStatus }) => { |
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.
If I'm honest, I have no idea why this resolves the errors
@@ -63,27 +61,27 @@ describe('EuiStepHorizontal', () => { | |||
|
|||
describe('onClick', () => { | |||
test('is called when clicked', () => { | |||
const onClickHandler = sinon.stub(); | |||
const onClickHandler = jest.fn(); |
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.
Just bypassing the need to import and @ts-ignore
sinon
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.
Thanks!!
This was easier than describing the changes 😄