From b97160b774f3dd3987f5e69fb0c1d2dd7e564b92 Mon Sep 17 00:00:00 2001 From: Gwynn DP Date: Mon, 13 Dec 2021 11:06:56 -0800 Subject: [PATCH] fix: update knexfile and package.json for test env --- knexfile.js | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/knexfile.js b/knexfile.js index 550fcde..3557fc2 100644 --- a/knexfile.js +++ b/knexfile.js @@ -3,7 +3,7 @@ const connection = require('./config/config').connectionString; module.exports = { development: { - client: 'postgresql', + client: 'pg', connection, searchPath: [process.env.DATABASE_SCHEMA, 'public'], pool: { @@ -18,8 +18,8 @@ module.exports = { }, }, - staging: { - client: 'postgresql', + test: { + client: 'pg', connection, searchPath: [process.env.DATABASE_SCHEMA, 'public'], pool: { @@ -35,7 +35,7 @@ module.exports = { }, production: { - client: 'postgresql', + client: 'pg', connection, searchPath: [process.env.DATABASE_SCHEMA, 'public'], pool: { diff --git a/package.json b/package.json index 0415322..4e47828 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "eslint": "eslint --report-unused-disable-directives .", "eslint:fix": "npm run eslint -- --fix", "test": "npm run test-unit-ci; npm run test-integration-ci;npm run test-repository-ci", - "test-unit-ci": "NODE_ENV=test mocha -r dotenv/config --exit ./server/models/**/*.spec.js ./server/routes/**/*.spec.js", + "test-unit-ci": "NODE_ENV=test mocha -r dotenv/config --exit ./server/models/**/*.spec.js ./server/**/*.spec.js", "test-repository-ci": "NODE_ENV=test mocha -r dotenv/config --exit ./server/repositories/**/*.spec.js", "server-test": "DEBUG=express:* NODE_LOG_LEVEL=debug nodemon './__tests__/serverTest.js'", "test-integration-ci": "NODE_ENV=test mocha -r dotenv/config --exit --timeout 20000 './__tests__/api-tests'",