Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Add Jest for testing #193

Merged
merged 2 commits into from
Jul 11, 2017
Merged

Add Jest for testing #193

merged 2 commits into from
Jul 11, 2017

Conversation

t-kelly
Copy link
Contributor

@t-kelly t-kelly commented Jul 11, 2017

What are you trying to accomplish with this PR?

Fixes #180

For maintainers:

  • I have 🎩'd these changes.
  • I have bumped the package.json version in a separate PR, if applicable.

@t-kelly t-kelly self-assigned this Jul 11, 2017
@t-kelly t-kelly changed the title Unit tests Add Jest for testing Jul 11, 2017
Copy link
Contributor

@bertiful bertiful left a comment

Choose a reason for hiding this comment

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

🎩 👍 - will re-review once you push changes for Circle CI.

globals: {
slate: {}
},
};
Copy link
Contributor

Choose a reason for hiding this comment

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

newline

@t-kelly
Copy link
Contributor Author

t-kelly commented Jul 11, 2017

Looks like CircleCI will call npm test automatically when test is included as a script in package.json

@t-kelly
Copy link
Contributor Author

t-kelly commented Jul 11, 2017

Actually I'll need to change slate test from override to post

@mcpatten
Copy link
Contributor

mcpatten commented Jul 11, 2017

just wanted to point out that, even though this is a super basic file, these are good tests 👍

Stick to testing the results of interactions with the interface methods. Focus on inputs & outputs - don't bother exposing or testing private methods directly - test them inferentially through expectations on the interface.

You guys are on the right path here, keep it up 👏

@t-kelly t-kelly merged commit 213d0cd into 0.11.0 Jul 11, 2017
@t-kelly t-kelly deleted the unit-tests branch July 11, 2017 17:44
@lock
Copy link

lock bot commented Oct 26, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants