File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 40
40
"scripts" : {
41
41
"lint" : " jshint bin/ lib/ test/" ,
42
42
"fmt" : " pre-commit run --all-files" ,
43
- "test" : " nyc jasmine JASMINE_CONFIG_PATH= test/jasmine.json " ,
43
+ "test" : " FORCE_COLOR=3 nyc node test/jasmine.js " ,
44
44
"coverage-html" : " nyc report --reporter=html" ,
45
45
"codecov" : " nyc report --reporter=lcov && codecov"
46
46
}
Original file line number Diff line number Diff line change
1
+ var Jasmine = require ( "jasmine" ) ;
2
+ var jasmine = new Jasmine ( ) ;
3
+
4
+ jasmine . loadConfig ( {
5
+ // Config reference: https://jasmine.github.io/api/npm/edge/Configuration.html
6
+ random : false ,
7
+ spec_dir : "test" ,
8
+ spec_files : [ "*_spec.js" ] ,
9
+ } ) ;
10
+ jasmine . configureDefaultReporter ( {
11
+ // Options reference: https://jasmine.github.io/api/npm/edge/ConsoleReporterOptions.html
12
+ //
13
+ // showColors influences the green dots for each successful test, but not the
14
+ // report after tests complete from istanbul-reports depending on
15
+ // supports-color package that respects the FORCE_COLOR environment variable.
16
+ //
17
+ showColors : true ,
18
+ } ) ;
19
+ jasmine . execute ( ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments