Skip to content

Commit

Permalink
fix: update knexfile and package.json for test env
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynndp committed Dec 13, 2021
1 parent 5a4ca0d commit b97160b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions knexfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -18,8 +18,8 @@ module.exports = {
},
},

staging: {
client: 'postgresql',
test: {
client: 'pg',
connection,
searchPath: [process.env.DATABASE_SCHEMA, 'public'],
pool: {
Expand All @@ -35,7 +35,7 @@ module.exports = {
},

production: {
client: 'postgresql',
client: 'pg',
connection,
searchPath: [process.env.DATABASE_SCHEMA, 'public'],
pool: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down

0 comments on commit b97160b

Please sign in to comment.