File tree 4 files changed +30
-4
lines changed
4 files changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ module.exports._enoent = enoent;
378
378
/***/ } ) ,
379
379
380
380
/***/ 31 :
381
- /***/ ( function ( __unusedmodule , __unusedexports , __webpack_require__ ) {
381
+ /***/ ( function ( module , __unusedexports , __webpack_require__ ) {
382
382
383
383
const core = __webpack_require__ ( 470 ) ;
384
384
const { GitHub, context } = __webpack_require__ ( 469 ) ;
@@ -426,7 +426,11 @@ async function run() {
426
426
}
427
427
}
428
428
429
- run ( ) ;
429
+ module . exports = run ;
430
+
431
+ if ( require . main === require . cache [ eval ( '__filename' ) ] ) {
432
+ run ( ) ;
433
+ }
430
434
431
435
432
436
/***/ } ) ,
Original file line number Diff line number Diff line change 36
36
"jest" : " ^24.8.0" ,
37
37
"prettier" : " ^1.16.4" ,
38
38
"husky" : " ^3.0.5"
39
+ },
40
+ "jest" : {
41
+ "testEnvironment" : " node" ,
42
+ "collectCoverageFrom" : [
43
+ " src/main.js"
44
+ ],
45
+ "coverageThreshold" : {
46
+ "global" : {
47
+ "branches" : 80 ,
48
+ "functions" : 80 ,
49
+ "lines" : 80 ,
50
+ "statements" : 80
51
+ }
52
+ }
39
53
}
40
54
}
Original file line number Diff line number Diff line change @@ -44,4 +44,8 @@ async function run() {
44
44
}
45
45
}
46
46
47
- run ( ) ;
47
+ module . exports = run ;
48
+
49
+ if ( require . main === module ) {
50
+ run ( ) ;
51
+ }
Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-undef */
2
- test ( 'that tests work' , ( ) => { } ) ;
2
+ describe ( 'Create release' , ( ) => {
3
+ test ( 'Create release endpoint is called' , async ( ) => { } ) ;
4
+
5
+ test ( 'Outputs are set' , async ( ) => { } ) ;
6
+ } ) ;
You can’t perform that action at this time.
0 commit comments