Fix test db config
This commit is contained in:
parent
47f7987d09
commit
33d5817e44
2
.gitignore
vendored
2
.gitignore
vendored
@ -65,4 +65,4 @@ typings/
|
||||
|
||||
# Databases
|
||||
# data/sleep-tracker.db3
|
||||
# data/test.db3
|
||||
data/test.db3
|
||||
|
@ -3,6 +3,6 @@ require("dotenv").config();
|
||||
const knex = require('knex');
|
||||
const config = require('../knexfile');
|
||||
|
||||
const environment = process.env.DB_ENV || 'test';
|
||||
const environment = process.env.DB_ENV;
|
||||
|
||||
module.exports = knex(config[environment]);
|
||||
|
Binary file not shown.
BIN
data/test.db3
BIN
data/test.db3
Binary file not shown.
@ -21,7 +21,7 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
|
||||
test: {
|
||||
testing: {
|
||||
client: "sqlite3",
|
||||
useNullAsDefault: true,
|
||||
connection: {
|
||||
|
Loading…
Reference in New Issue
Block a user