mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-03 04:29:40 +00:00
Create task to set up a test server
This commit is contained in:
parent
0992f560e0
commit
115af819a0
1 changed files with 9 additions and 0 deletions
|
|
@ -279,6 +279,15 @@ gulp.task('test:e2e:safe', ['test:prepare'], (cb) => {
|
|||
});
|
||||
});
|
||||
|
||||
gulp.task('test:startServer', (done) => {
|
||||
process.env.NODE_DB_URI = TEST_DB_URI;
|
||||
process.env.DISABLE_REQUEST_LOGGING = true;
|
||||
process.env.PORT = TEST_SERVER_PORT;
|
||||
|
||||
let server = require('../website/src/server.js');
|
||||
server.listen(TEST_SERVER_PORT, done);
|
||||
});
|
||||
|
||||
gulp.task('test', [
|
||||
'test:common:safe',
|
||||
'test:content:safe',
|
||||
|
|
|
|||
Loading…
Reference in a new issue