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

Add some basic tests #7

Merged
merged 9 commits into from
Aug 13, 2018
Merged

Add some basic tests #7

merged 9 commits into from
Aug 13, 2018

Conversation

peatroot
Copy link
Contributor

@peatroot peatroot commented Aug 8, 2018

This PR:

  • configures jest to ignore certain files/directories
  • sets up basic enzyme tests for some of the pages
  • adds a yarn test:coverage script
  • adds a circleci config for testing the build

@peatroot peatroot requested a review from mirandaio August 8, 2018 10:08
package.json Outdated
@@ -18,6 +18,8 @@
"apollo-link-schema": "^1.1.0",
"casual-browserify": "^1.5.19-2",
"d3": "^5.5.0",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

enzyme and enzyme-adapter-react-16 should be in devDependencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that would be clearer; moving them now.

The create-react-app README describes setting up enzyme and installs them as dependencies, not devDependencies. Discussed here.

package.json Outdated
@@ -31,6 +33,7 @@
"react-measure": "^2.1.0",
"react-router-dom": "^4.3.1",
"react-scripts": "1.1.4",
"react-test-renderer": "^16.4.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should also be in devDependencies.

@mirandaio mirandaio merged commit c81e7f2 into master Aug 13, 2018
@peatroot peatroot deleted the gp-test branch August 13, 2018 09:57
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