From 8a8cfea5b27f1199e7e8e3027ada6884c6ae2e00 Mon Sep 17 00:00:00 2001 From: Shogo Hida Date: Sun, 30 Oct 2022 15:43:27 +0900 Subject: [PATCH] Add slice to filename --- cli/tests/testdata/run/queue_microtask_error_handled.ts | 2 +- cli/tests/testdata/run/report_error_handled.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/tests/testdata/run/queue_microtask_error_handled.ts b/cli/tests/testdata/run/queue_microtask_error_handled.ts index 7d1440135fe078..47ea2d32e04fa6 100644 --- a/cli/tests/testdata/run/queue_microtask_error_handled.ts +++ b/cli/tests/testdata/run/queue_microtask_error_handled.ts @@ -2,7 +2,7 @@ addEventListener("error", (event) => { console.log({ cancelable: event.cancelable, message: event.message, - filename: event.filename, + filename: event.filename?.slice?.(-100), lineno: event.lineno, colno: event.colno, error: event.error, diff --git a/cli/tests/testdata/run/report_error_handled.ts b/cli/tests/testdata/run/report_error_handled.ts index de58f0b8e50afa..d18996c1348549 100644 --- a/cli/tests/testdata/run/report_error_handled.ts +++ b/cli/tests/testdata/run/report_error_handled.ts @@ -2,7 +2,7 @@ addEventListener("error", (event) => { console.log({ cancelable: event.cancelable, message: event.message, - filename: event.filename, + filename: event.filename?.slice?.(-100), lineno: event.lineno, colno: event.colno, error: event.error,