Skip to content

Commit 9b47d0a

Browse files
committed
Adds timing to helper.js
1 parent 495cf2c commit 9b47d0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const supportsColor = require('supports-color');
55
jasmine.DEFAULT_TIMEOUT_INTERVAL = process.env.PARSE_SERVER_TEST_TIMEOUT || 5000;
66

77
jasmine.getEnv().clearReporters();
8-
jasmine.getEnv().addReporter(new SpecReporter({ colors: { enabled: supportsColor.stdout }}));
8+
jasmine.getEnv().addReporter(new SpecReporter({ colors: { enabled: supportsColor.stdout }, spec: { displayDuration: true }}));
99

1010
global.on_db = (db, callback, elseCallback) => {
1111
if (process.env.PARSE_SERVER_TEST_DB == db) {
@@ -422,7 +422,7 @@ global.it_exclude_dbs = excluded => {
422422
}
423423

424424
global.it_only_db = db => {
425-
if (process.env.PARSE_SERVER_TEST_DB === db) {
425+
if (process.env.PARSE_SERVER_TEST_DB === db || !process.env.PARSE_SERVER_TEST_DB && db == 'mongo') {
426426
return (name, suite) => {
427427
return it(`[${db}] ${name}`, suite);
428428
};

0 commit comments

Comments
 (0)