Skip to content
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

Merged
merged 5 commits into from
Mar 27, 2018
Merged

Setup jest #7

merged 5 commits into from
Mar 27, 2018

Conversation

DanielMSchmidt
Copy link
Contributor

@DanielMSchmidt DanielMSchmidt commented Mar 23, 2018

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

@DanielMSchmidt DanielMSchmidt changed the title test: setup jest Setup jest Mar 23, 2018
@@ -0,0 +1,36 @@
import React from "react";
Copy link
Contributor

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?

Copy link
Contributor Author

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 ;))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will do, thanks.

@weblancaster
Copy link
Contributor

@DanielMSchmidt let's not use story shots for now maybe one day when we find more value but at the moment we are pretty good with Jest Snapshot/Unit tests

@DanielMSchmidt
Copy link
Contributor Author

@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

@DanielMSchmidt DanielMSchmidt force-pushed the danielmschmidt/DCOS-21785-jest branch from 777e826 to 3f558f8 Compare March 26, 2018 06:47
@DanielMSchmidt
Copy link
Contributor Author

I also added tshint as pretest step.

Daniel Schmidt added 2 commits March 26, 2018 08:51
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
@DanielMSchmidt DanielMSchmidt force-pushed the danielmschmidt/DCOS-21785-jest branch from 0df86e9 to 463b998 Compare March 26, 2018 06:51
Copy link
Contributor

@weblancaster weblancaster left a 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

Copy link
Contributor

@weblancaster weblancaster left a 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.

Copy link
Contributor

@weblancaster weblancaster left a 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.

@weblancaster weblancaster force-pushed the danielmschmidt/DCOS-21785-jest branch from 8428dce to 6f35647 Compare March 26, 2018 22:42
@weblancaster weblancaster force-pushed the danielmschmidt/DCOS-21785-jest branch from 6f35647 to 686c17a Compare March 26, 2018 23:30
@weblancaster weblancaster merged commit 5af78ff into master Mar 27, 2018
@mstruebing mstruebing deleted the danielmschmidt/DCOS-21785-jest branch June 25, 2021 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants