-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
chore(sqllab): Migrate tests to typescript #25274
chore(sqllab): Migrate tests to typescript #25274
Conversation
|
||
import HighlightedSql from 'src/SqlLab/components/HighlightedSql'; | ||
import ModalTrigger from 'src/components/ModalTrigger'; | ||
import { supersetTheme, ThemeProvider } from '@superset-ui/core'; | ||
import { fireEvent, render } from 'spec/helpers/testing-library'; |
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.
Thank you @justinpark for the improvements! We generally avoid describe
and it
in RTL tests. Could you remove them?
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.
You can check our Testing Guidelines and Best Practices to improve even more the tests 😉
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.
LGTM
SUMMARY
Migrates legacy jsx tests to typescript including replacing enzyme by testing-library.
TESTING INSTRUCTIONS
npm run type and test
ADDITIONAL INFORMATION