All of the app components (and tests for them) are expected to be under the lib
folder.
This is important because tests are explicitly invoked from under the folder
jest test framework is used. Use npm test
to run all tests (unit tests and end-to-end tests).
Custom configuration is used - see the scripts.test
in package.json
.
Test modules are maintained under the test
folder.
End to end tests require to be executed in certain order (see the test/jest.run-all-tests.js
file).
- a temporary cloud is provisioned when running tests
- if you want to use a different cloud (for debugging purposes, for example) - place
.env
file with Cloudinary credentials under thetest/end2end
folder- then the test migration operations will be performed against that cloud