Commit 6f910f9 1 parent 0dac5eb commit 6f910f9 Copy full SHA for 6f910f9
File tree 6 files changed +706
-5
lines changed
6 files changed +706
-5
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
env : {
3
3
es2020 : true ,
4
+ jasmine : true ,
4
5
node : true
5
6
} ,
6
7
plugins : [
8
+ 'jasmine' ,
7
9
'jsdoc'
8
10
] ,
9
11
extends : [
10
12
'eslint:recommended' ,
13
+ 'plugin:jasmine/recommended' ,
11
14
'plugin:jsdoc/recommended'
12
15
] ,
13
16
parser : 'babel-eslint' ,
14
17
parserOptions : {
15
18
ecmaVersion : 11 ,
16
19
sourceType : 'module'
20
+ } ,
21
+ rules : {
22
+ "jasmine/no-spec-dupes" : "off" ,
23
+ "jasmine/no-suite-dupes" : "off"
17
24
}
18
25
}
Original file line number Diff line number Diff line change 44
44
- name : Verify generated files are fresh
45
45
run : git diff --exit-code
46
46
- run : yarn lint
47
+ - run : yarn test
Original file line number Diff line number Diff line change 10
10
"eslint" : " ^7.5.0" ,
11
11
"eslint-config-standard" : " ^14.1.1" ,
12
12
"eslint-plugin-import" : " ^2.22.0" ,
13
+ "eslint-plugin-jasmine" : " ^4.1.1" ,
13
14
"eslint-plugin-jsdoc" : " ^30.0.3" ,
14
15
"eslint-plugin-node" : " ^11.1.0" ,
15
16
"eslint-plugin-promise" : " ^4.2.1" ,
16
17
"eslint-plugin-standard" : " ^4.0.1" ,
18
+ "jasmine" : " ^3.5.0" ,
17
19
"jsdoc" : " ^3.6.5" ,
18
20
"nodemon" : " ^2.0.4"
19
21
},
20
22
"scripts" : {
21
23
"lint" : " eslint ." ,
22
- "lint:watch" : " nodemon --exec 'yarn lint'"
24
+ "lint:watch" : " nodemon --exec 'yarn lint'" ,
25
+ "test" : " jasmine" ,
26
+ "test:watch" : " nodemon --exec 'yarn test'"
23
27
}
24
28
}
25
29
Original file line number Diff line number Diff line change
1
+ 'use strict'
2
+
3
+ describe ( 'BankAccount' , ( ) => {
4
+ it ( 'passes' )
5
+ } )
Original file line number Diff line number Diff line change
1
+ {
2
+ "spec_dir" : " spec" ,
3
+ "spec_files" : [
4
+ " **/*_spec.js"
5
+ ],
6
+ "helpers" : [
7
+ " helpers/**/*.js"
8
+ ],
9
+ "stopSpecOnExpectationFailure" : false ,
10
+ "random" : true
11
+ }
You can’t perform that action at this time.
0 commit comments