File tree 5 files changed +24
-9
lines changed
5 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 33
33
- uses : actions/checkout@v4
34
34
- uses : actions/setup-node@v4
35
35
with :
36
- node-version : " 16 "
36
+ node-version : " 20 "
37
37
registry-url : https://registry.npmjs.org/
38
38
- run : npm ci
39
39
- run : npm publish
Original file line number Diff line number Diff line change 29
29
- uses : actions/checkout@v4
30
30
- uses : actions/setup-node@v4
31
31
with :
32
- node-version : " 16 "
32
+ node-version : " 20 "
33
33
34
34
# Action Repo: https://github.com/actions/cache
35
35
- name : " Cache node_modules"
64
64
- " 14"
65
65
- " 16"
66
66
- " 18"
67
- - " 19"
67
+ - " 20"
68
+ - current
68
69
69
70
steps :
70
71
- uses : actions/checkout@v4
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