From 05f1be8037fb8257d0d9fe5361af3bf90e493cf4 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Tue, 7 Jul 2020 09:04:32 +0200 Subject: [PATCH] Ignore native Jasmine frames in stack trace --- src/lib/util.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/util.js b/src/lib/util.js index a67a4fe..7b37fe2 100644 --- a/src/lib/util.js +++ b/src/lib/util.js @@ -105,6 +105,7 @@ export function cleanStack(str, cwd = process.cwd()) { let nearestFrame; stack = frames + .filter((frame) => frame.type !== 'native' || frame.name !== 'Jasmine') .map((frame) => { // Only show frame for errors in the user's code if (