Tests for Sequelize Slugify use the Jest test framework.


Unit tests run without external database dependencies using SQLite.

npm run test


Testing the supported databases uses Docker and docker-compose.

These commands start up containers for postgres, mysql, mariadb and mssql.

docker-compose up

Using the container name on the command line will start single database containers.

docker-compose up [postgres|mysql|mariadb|mssql]

Tests can run against these containers using these commands.

npm run test-unit-postgres
npm run test-unit-mysql
npm run test-unit-mariadb
npm run test-unit-mssql


To prepare the MSSQL database the first time, run this command once.


results matching ""

    No results matching ""