File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 65
65
"scripts" : {
66
66
"dev" : " npm run build && node bin/dev" ,
67
67
"build" : " babel src/ -d lib/" ,
68
- "test" : " cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 node $COVERAGE_OPTION ./spec/support/runner.js " ,
68
+ "test" : " cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 $COVERAGE_OPTION jasmine " ,
69
69
"test:win" : " npm run pretest && cross-env NODE_ENV=test TESTING=1 node ./node_modules/jasmine/bin/jasmine.js && npm run posttest" ,
70
70
"coverage" : " cross-env COVERAGE_OPTION='./node_modules/.bin/istanbul cover' npm test" ,
71
71
"coverage:win" : " npm run pretest && cross-env NODE_ENV=test TESTING=1 node ./node_modules/babel-istanbul/lib/cli.js cover ./node_modules/jasmine/bin/jasmine.js && npm run posttest" ,
Original file line number Diff line number Diff line change 1
1
"use strict"
2
2
// Sets up a Parse API server for testing.
3
+ const SpecReporter = require ( 'jasmine-spec-reporter' ) ;
3
4
4
5
jasmine . DEFAULT_TIMEOUT_INTERVAL = process . env . PARSE_SERVER_TEST_TIMEOUT || 5000 ;
5
6
7
+ jasmine . getEnv ( ) . clearReporters ( ) ;
8
+ jasmine . getEnv ( ) . addReporter ( new SpecReporter ( ) ) ;
9
+
6
10
global . on_db = ( db , callback , elseCallback ) => {
7
11
if ( process . env . PARSE_SERVER_TEST_DB == db ) {
8
12
return callback ( ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments