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

Configure Jest #33

Closed
11 tasks done
Tracked by #19 ...
zainfathoni opened this issue Dec 25, 2021 · 0 comments · Fixed by #100
Closed
11 tasks done
Tracked by #19 ...

Configure Jest #33

zainfathoni opened this issue Dec 25, 2021 · 0 comments · Fixed by #100
Labels
ci-cd Continuous Integration & Continuous Delivery testing Automated testing
Milestone

Comments

@zainfathoni
Copy link
Owner

zainfathoni commented Dec 25, 2021

Background

Thanks to our fellow contributors, we managed to work for multiple streams in parallel.
Unfortunately, our end-to-end test cannot test the upstream works without the downstream elements implemented, e.g. it couldn't test the database schema and operations without the form implementation.

Therefore, It's time to introduce a proper unit and integration tests infrastructure.

Implementation Model

You can refer to this PR as an example: kawalcovid19/wargabantuwarga.com#358.

Tasks

  • Install & configure jest, testing-library, and @jackfranklin/test-data-bot libraries
  • Run only relevant Jest Tests on Git pre-commit hooks
  • Configure code coverage collections and threshold
  • Separate client and server Jest configurations
  • Add unit test scripts
    • test:watch for running tests while watching changed files
    • test:coverage for running all tests and gather the test coverage
    • test:debug for debugging unit tests
This was referenced Dec 25, 2021
@zainfathoni zainfathoni added ci-cd Continuous Integration & Continuous Delivery testing Automated testing labels Dec 25, 2021
@zainfathoni zainfathoni added this to the Hackathon milestone Dec 27, 2021
@kodiakhq kodiakhq bot closed this as completed in #100 Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-cd Continuous Integration & Continuous Delivery testing Automated testing
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant