Skip to content

Commit 18fb7dd

Browse files
committed
Ignore coverage of catch when dependencies to render trace can't be loaded
1 parent a1447b7 commit 18fb7dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/get-user-trace.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ try {
99
.codeFrameColumns
1010
} catch {
1111
// We're in a browser environment
12+
/* istanbul ignore next */
1213
console.warn(
1314
'Printing the user trace is not supported in a browser environment',
1415
)
@@ -50,6 +51,7 @@ function getCodeFrame(frame) {
5051

5152
function getUserTrace() {
5253
// If we couldn't load dependencies, we can't generate a user trace
54+
/* istanbul ignore next */
5355
if (!readFileSync || !codeFrameColumns) {
5456
return ''
5557
}

0 commit comments

Comments
 (0)