From 5b2caed7fd928fa80e31be47edf0bd73a1b2c1cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 18 Dec 2023 11:43:27 +0100 Subject: fix(coverage): error if no files found (#21615) This commit fixes a panic in `deno coverage` command if the file to be covered doesn't produce any coverage data. Fixes https://github.com/denoland/deno/issues/21580 --- cli/tests/testdata/coverage/doesnt_exist.out | 1 + 1 file changed, 1 insertion(+) create mode 100644 cli/tests/testdata/coverage/doesnt_exist.out (limited to 'cli/tests/testdata/coverage/doesnt_exist.out') diff --git a/cli/tests/testdata/coverage/doesnt_exist.out b/cli/tests/testdata/coverage/doesnt_exist.out new file mode 100644 index 000000000..0b679bcb4 --- /dev/null +++ b/cli/tests/testdata/coverage/doesnt_exist.out @@ -0,0 +1 @@ +error: No coverage files found -- cgit v1.2.3