Cleans the db (calls db-test-reset
) and runs all tests. When env variable FILE
is provided, it runs only one test file (recommended for development).
FILE=test/profile.test.js npm test
Migrate database to the latest migration. Connects to the DB configured in .env
.
Generates new di_grap.jpg
from di_graph.dot
file which is automatically generated on every start in development mode.
Rollback one last migration. Connects to the DB configured in .env
.
Rollback all migrations and then migrate the database to the latest version. Uses db configured in .env-test
.
Creates files for the new migration. Automatically figures out the migration number. It opens both files in vim afterwards.
Same as test
but will also generate tests code coverage and saves report in /coverage
directory. Uses istanbul
package.
Regenerates API documentation (doc/api.md -> doc/api.html). Uses n
to change node version as the tool aglio
doesn't work with current node version.
Checks the syntax.