5dbaf39aba
* upgrade node to version 6 * upgrade npm to v4 * update shrinkwrap * use npm 4 in travis * use mongoose 4.6.4 * update shrinkwrap * fix async test and upgrade mongoose * fix amazon test * remove debugging code * working tests with separate server * update coupon code * mupdate mongoose * nvm: relax node version in .nvmrc
How to run tests:
npm testis equivalent togulp test:api-v3which will run, in order,gulp lint,gulp test:api-v3:unitandgulp test:api-v3:integration. If one of these fails, the wholenpm testcommand blocks and fails. Each of these commands can also be run as a standalone command.- To run the server and the integrations tests in two different terminals (to better inspect the output in the server) run
npm startin one andnpm test:api-v3:integration:separate-serverin the other