-
Notifications
You must be signed in to change notification settings - Fork 41
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
Setup jest #7
Setup jest #7
Conversation
components/badge/__tests__/badge.tsx
Outdated
@@ -0,0 +1,36 @@ | |||
import React from "react"; |
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.
Can you rename the file to badge.test.tsx
please?
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.
feel free to do it yourself 👍 (because I am OOO for today ;))
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.
I will do, thanks.
@DanielMSchmidt let's not use |
@weblancaster I agree with you, although storyshots also uses jest & snapshot testing, just fully automated from your storybook stories 🙈 But yeah, let's improve tooling when we need it |
777e826
to
3f558f8
Compare
I also added tshint as pretest step. |
We can't use story shots because of other plugins we use. Maybe we should take the time to decide if a) this is important to us and b) we can find a way around this Closes DCOS-21785
0df86e9
to
463b998
Compare
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.
Great work @DanielMSchmidt
Thanks for this PR
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.
Requesting changes because the linting isn't erroring out.
I will make updates to the code so it errors out and block from passing successfully.
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.
I fixed the issue of not checking the files correctly.
8428dce
to
6f35647
Compare
6f35647
to
686c17a
Compare
We can't use story shots because of other plugins we use. Maybe we
should take the time to decide if
a) this is important to us and
b) we can find a way around this
Closes DCOS-21785