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
|
# Databases
|
||||||
# data/sleep-tracker.db3
|
# data/sleep-tracker.db3
|
||||||
# data/test.db3
|
data/test.db3
|
||||||
|
@ -3,6 +3,6 @@ require("dotenv").config();
|
|||||||
const knex = require('knex');
|
const knex = require('knex');
|
||||||
const config = require('../knexfile');
|
const config = require('../knexfile');
|
||||||
|
|
||||||
const environment = process.env.DB_ENV || 'test';
|
const environment = process.env.DB_ENV;
|
||||||
|
|
||||||
module.exports = knex(config[environment]);
|
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",
|
client: "sqlite3",
|
||||||
useNullAsDefault: true,
|
useNullAsDefault: true,
|
||||||
connection: {
|
connection: {
|
||||||
|
Loading…
Reference in New Issue
Block a user