test:api
The test:api
runs unit tests on the api service.
Run npm run test:api
in the root to trigger this script.
YYMV
Tests are an area of active ongoing development within Morio.
Under the hood, this will run:
Terminal
npm run redev && \
sleep 5 && \
./api/run-test-container.sh && \
npm run redev
In other words, this will destroy your local development environment, although it will spin it up again after running the tests.