Skip to content

Latest commit

 

History

History
63 lines (35 loc) · 1.72 KB

README.md

File metadata and controls

63 lines (35 loc) · 1.72 KB

couch2pg

Build Status Coverage Status Maintainability License

TODO

  • cli/env

Running tests

docker-compose run tests yarn test

Running tests with coverage

docker-compose run tests yarn test --coverage

Running tests in watch mode

docker-compose run tests yarn test --watchAll

Running tests against local databases instead of docker-compose


export TEST_PG_URL=postgres://localhost:5432
export TEST_COUCH_URL=http://admin:pass@localhost:5984
yarn test --coverage --projects jest-*.config.js

Helpful Commands


docker-compose build/ps/down/rm
docker ps/stop/rm

Notes

  • jest: snapshot testing, mocking support, performant

https://medium.com/airbnb-engineering/unlocking-test-performance-migrating-from-mocha-to-jest-2796c508ec50

https://www.youtube.com/watch?v=NtjyeojAOBs

  • ramda

https://www.codementor.io/michelre/functional-javascript-why-i-prefer-using-ramda-over-lodash-or-underscore-dzovysq11

  • async/await

https://hackernoon.com/6-reasons-why-javascripts-async-await-blows-promises-away-tutorial-c7ec10518dd9

  • es6 classes

https://www.quora.com/What-are-the-benefits-of-using-classes-vs-function-in-ES6

https://stackoverflow.com/questions/36099721/javascript-what-is-the-difference-between-function-and-class