Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (23 loc) · 977 Bytes

Development.md

File metadata and controls

33 lines (23 loc) · 977 Bytes

Prerequisites

Setup

Run npm install from the root directory of the project.

Testing

Tests are written for Jest. They can be run with the following commands:

  • npm test runs all tests except for the PSQL adapter test
  • npm run test:all runs all tests
  • npm run test:pg only runs the PSQL adapter test

The PSQL adapter test requires a PSQL server with a database named "mantle_auth_test" that it can connect to in order to run. Such a server can be start with the following command:

npm run test-database

It will start an instance using docker

The PSQL adapter test also requires a table "person" to exist on the server. If the server is running then the table can be created with the following commands:

npm run init-test-database