File tree 1 file changed +0
-20
lines changed 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -57,26 +57,6 @@ For example:
57
57
}
58
58
} ) ;
59
59
60
- test ( 'empty LCOV throws an error' , ( ) => {
61
- const lcovPath = './fixtures/lcov.empty.info' ;
62
- process . env [ 'INPUT_PATH' ] = lcovPath ;
63
- const ip = path . join ( __dirname , 'index.js' ) ;
64
- try {
65
- cp . execSync ( `node ${ ip } ` , { env : process . env } ) ;
66
- fail ( 'this code should fail' ) ;
67
- } catch ( err ) {
68
- expect ( err ) . toBeDefined ( ) ;
69
-
70
- const errorMessage = err . stdout . toString ( ) . replace ( / % 0 A / g, '\n' ) ;
71
- expect ( errorMessage ) . toContain (
72
- `❌ Found an empty lcov file at "${ lcovPath } ".
73
- An empty lcov file was found but with no coverage data. This might be because \
74
- you have no test files or your tests are not generating any coverage data.
75
- `
76
- ) ;
77
- }
78
- } ) ;
79
-
80
60
test ( 'invalid LCOV format throws an error' , ( ) => {
81
61
const lcovPath = './fixtures/lcov.error.info' ;
82
62
process . env [ 'INPUT_PATH' ] = lcovPath ;
You can’t perform that action at this time.
0 commit comments