Too much output! (#5795)

Reducing the spew.
This commit is contained in:
Arthur Cinader
2019-07-10 11:56:04 -04:00
committed by GitHub
parent af6c44eca4
commit 815b7c6e05
3 changed files with 2 additions and 48 deletions

View File

@@ -1,18 +1,8 @@
'use strict';
// Sets up a Parse API server for testing.
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
const supportsColor = require('supports-color');
jasmine.DEFAULT_TIMEOUT_INTERVAL =
process.env.PARSE_SERVER_TEST_TIMEOUT || 5000;
jasmine.getEnv().clearReporters();
jasmine.getEnv().addReporter(
new SpecReporter({
colors: { enabled: supportsColor.stdout },
spec: { displayDuration: true },
})
);
global.on_db = (db, callback, elseCallback) => {
if (process.env.PARSE_SERVER_TEST_DB == db) {
return callback();