From f52031ecdf4520e6d404553691da193356e58691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 18 Apr 2022 15:22:23 +0200 Subject: feat(test): skip internal stack frames for errors (#14302) This commit changes "deno test" to filter out stack frames if it is beneficial to the user. This is the case when there are stack frames coming from "internal" code below frames coming from user code. Co-authored-by: Nayeem Rahman --- cli/tests/testdata/test/fail.out | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'cli/tests/testdata/test/fail.out') diff --git a/cli/tests/testdata/test/fail.out b/cli/tests/testdata/test/fail.out index ba96ef7e2..696dee52b 100644 --- a/cli/tests/testdata/test/fail.out +++ b/cli/tests/testdata/test/fail.out @@ -18,70 +18,60 @@ Error throw new Error(); ^ at [WILDCARD]/test/fail.ts:2:9 - at [WILDCARD] ./test/fail.ts > test 1 Error throw new Error(); ^ at [WILDCARD]/test/fail.ts:5:9 - at [WILDCARD] ./test/fail.ts > test 2 Error throw new Error(); ^ at [WILDCARD]/test/fail.ts:8:9 - at [WILDCARD] ./test/fail.ts > test 3 Error throw new Error(); ^ at [WILDCARD]/test/fail.ts:11:9 - at [WILDCARD] ./test/fail.ts > test 4 Error throw new Error(); ^ at [WILDCARD]/test/fail.ts:14:9 - at [WILDCARD] ./test/fail.ts > test 5 Error throw new Error(); ^ at [WILDCARD]/test/fail.ts:17:9 - at [WILDCARD] ./test/fail.ts > test 6 Error throw new Error(); ^ at [WILDCARD]/test/fail.ts:20:9 - at [WILDCARD] ./test/fail.ts > test 7 Error throw new Error(); ^ at [WILDCARD]/test/fail.ts:23:9 - at [WILDCARD] ./test/fail.ts > test 8 Error throw new Error(); ^ at [WILDCARD]/test/fail.ts:26:9 - at [WILDCARD] ./test/fail.ts > test 9 Error throw new Error(); ^ at [WILDCARD]/test/fail.ts:29:9 - at [WILDCARD] failures: -- cgit v1.2.3