mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-23 14:17:05 +00:00
chore(gulp): Add convience task for starting up a test server.
This commit is contained in:
parent
a6fb5790e5
commit
9a76e7a62c
1 changed files with 7 additions and 0 deletions
|
|
@ -39,6 +39,13 @@ let testBin = (string) => {
|
|||
return `NODE_ENV=testing ./node_modules/.bin/${string}`;
|
||||
};
|
||||
|
||||
gulp.task('test:nodemon', (done) => {
|
||||
process.env.PORT = TEST_SERVER_PORT;
|
||||
process.env.NODE_DB_URI=TEST_DB_URI;
|
||||
|
||||
runSequence('nodemon')
|
||||
});
|
||||
|
||||
gulp.task('test:prepare:mongo', (cb) => {
|
||||
mongoose.connect(TEST_DB_URI, (err) => {
|
||||
if (err) return cb(`Unable to connect to mongo database. Are you sure it's running? \n\n${err}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue