File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
test-runner-coverage-v8/src Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 48
48
"devDependencies" : {
49
49
"@changesets/cli" : " ^2.16.0" ,
50
50
"@rollup/plugin-node-resolve" : " ^15.0.1" ,
51
+ "@rollup/plugin-terser" : " ^0.4.1" ,
51
52
"@rollup/plugin-typescript" : " ^11.0.0" ,
52
53
"@types/chai" : " ^4.2.22" ,
53
54
"@types/mocha" : " ^10.0.1" ,
71
72
"prettier-plugin-package" : " ^1.3.0" ,
72
73
"rimraf" : " ^4.4.1" ,
73
74
"rollup" : " ^3.15.0" ,
74
- "@rollup/plugin-terser" : " ^0.4.1" ,
75
75
"ts-node" : " ^10.4.0" ,
76
76
"typescript" : " ~5.0.4"
77
77
},
111
111
"@typescript-eslint/ban-ts-comment" : " off"
112
112
}
113
113
},
114
- "mocha" : {
115
- "loader" : " ts-node/esm" ,
116
- "exit" : true ,
117
- "retries" : 3
118
- },
119
114
"lint-staged" : {
120
115
"*.js" : [
121
116
" eslint --fix" ,
125
120
" prettier --write --ignore-path .eslintignore"
126
121
]
127
122
},
123
+ "mocha" : {
124
+ "loader" : " ts-node/esm" ,
125
+ "exit" : true ,
126
+ "retries" : 3
127
+ },
128
128
"prettier" : {
129
129
"singleQuote" : true ,
130
130
"arrowParens" : " avoid" ,
Original file line number Diff line number Diff line change 59
59
"@mdx-js/mdx" : " ^1.6.22" ,
60
60
"@rollup/plugin-babel" : " ^6.0.3" ,
61
61
"@rollup/plugin-node-resolve" : " ^15.0.1" ,
62
+ "@rollup/plugin-terser" : " ^0.4.1" ,
62
63
"@storybook/csf-tools" : " ^6.4.9" ,
63
64
"@web/dev-server-core" : " ^0.5.0" ,
64
65
"@web/rollup-plugin-html" : " ^2.0.0" ,
70
71
"globby" : " ^11.0.1" ,
71
72
"path-is-inside" : " ^1.0.2" ,
72
73
"rollup" : " ^3.15.0" ,
73
- "@rollup/plugin-terser" : " ^0.4.1" ,
74
74
"storybook-addon-markdown-docs" : " ^1.0.4"
75
75
},
76
76
"devDependencies" : {
Original file line number Diff line number Diff line change 33
33
"dependencies" : {
34
34
"@rollup/plugin-node-resolve" : " ^15.0.1" ,
35
35
"@rollup/plugin-replace" : " ^5.0.2" ,
36
- "pretty-bytes" : " ^5.5.0" ,
37
36
"@rollup/plugin-terser" : " ^0.4.1" ,
37
+ "pretty-bytes" : " ^5.5.0" ,
38
38
"workbox-build" : " ^6.2.4"
39
39
},
40
40
"contributors" : [
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export async function v8ToIstanbul(
88
88
} else {
89
89
// When we reuse a cached converter, we need to reset it before using its `applyCoverage` function.
90
90
// If we don't, the coverage results will be poisoned with the results of the previous uses.
91
- //
91
+ //
92
92
// This "workaround" is resetting some internal variables of the `V8ToIstanbul` class: `branches` & `functions`.
93
93
// This can break when newer versions of v8-to-istanbul are released. (variable renaming, more variables are used, ...)
94
94
//
@@ -98,7 +98,7 @@ export async function v8ToIstanbul(
98
98
converter . branches = { } ;
99
99
// @ts -ignore
100
100
converter . functions = { } ;
101
- }
101
+ }
102
102
103
103
converter . applyCoverage ( entry . functions ) ;
104
104
Object . assign ( istanbulCoverage , converter . toIstanbul ( ) ) ;
You can’t perform that action at this time.
0 commit comments