Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

Just jesting #68

Closed
wants to merge 5 commits into from
Closed

Conversation

ojongerius
Copy link
Contributor

This currently is mostly scaffolding: it hooks up Jest, and sets up a config that spins up a MongoDB server in memory -according to docs that should take about 7MB or RAM and runs tests against it. Saves us from wiring up Docker and configuring services in Travis.

There is an issue with running these tests in parallel, see jestjs/jest#5731 for now we can run tests serially, which is the recommended mode for CI anyway 🤷‍♂️ .

The only test I've added for now is test/user.test.js, which creates a user using mongoose, and tests if it can retrieve it using graphql. As that endpoint has 2 PRs open and I don't want to get in their way, I won't try to get this merged yet. However, I'd love for us to start having a healthy culture of tests in place sooner rather than later 😺

@Bouncey, @raisedadead I've added you as reviewers but mind the WiP label, it's there for a reason .

* staging:
  feat(createuser): add validation and error handling to createuser
  feat(tools): add async error handling helper
  chore(tools): ignore snyk warn of http-proxy-agent
  feat(tools): no more global installs/exports
  chore: temporarily ignore hoek for 30 days (freeCodeCamp#53)
* origin/staging:
  chore: lint (freeCodeCamp#63)
  feat(tools): add nodemon to auto-restart on file changes
  chore(dependencies): update lockfile and package formatting
@ojongerius
Copy link
Contributor Author

Don't mind me.

@ojongerius ojongerius closed this Apr 25, 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.

1 participant