File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 57
57
"gaze" : " 1.1.1" ,
58
58
"istanbul" : " 1.0.0-alpha.1" ,
59
59
"jasmine" : " 2.5.2" ,
60
+ "jasmine-spec-reporter" : " ^2.7.0" ,
60
61
"mongodb-runner" : " 3.4.0" ,
61
62
"nodemon" : " 1.11.0" ,
62
63
"request-promise" : " 4.1.1"
63
64
},
64
65
"scripts" : {
65
66
"dev" : " npm run build && node bin/dev" ,
66
67
"build" : " babel src/ -d lib/" ,
67
- "test" : " cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 node $COVERAGE_OPTION ./node_modules/jasmine/bin/jasmine .js" ,
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
69
"test:win" : " npm run pretest && cross-env NODE_ENV=test TESTING=1 node ./node_modules/jasmine/bin/jasmine.js && npm run posttest" ,
69
70
"coverage" : " cross-env COVERAGE_OPTION='./node_modules/.bin/istanbul cover' npm test" ,
70
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
+ var Jasmine = require ( 'jasmine' ) ;
2
+ var SpecReporter = require ( 'jasmine-spec-reporter' ) ;
3
+
4
+ var jrunner = new Jasmine ( ) ;
5
+ jrunner . env . clearReporters ( ) ; // jasmine >= 2.5.2, remove default reporter logs
6
+ jrunner . addReporter ( new SpecReporter ( ) ) ; // add jasmine-spec-reporter
7
+ jrunner . loadConfigFile ( ) ; // load jasmine.json configuration
8
+ jrunner . execute ( ) ;
You can’t perform that action at this time.
0 commit comments