From 47f7bed677a6b72e873712de8f3988ea891710e4 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 8 May 2024 22:45:06 -0400 Subject: chore: enable clippy::print_stdout and clippy::print_stderr (#23732) 1. Generally we should prefer to use the `log` crate. 2. I very often accidentally commit `eprintln`s. When we should use `println` or `eprintln`, it's not too bad to be a bit more verbose and ignore the lint rule. --- tests/testdata/inspector/inspector_test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/testdata/inspector') diff --git a/tests/testdata/inspector/inspector_test.js b/tests/testdata/inspector/inspector_test.js index 86cd48854..e1ac7b635 100644 --- a/tests/testdata/inspector/inspector_test.js +++ b/tests/testdata/inspector/inspector_test.js @@ -1,3 +1,6 @@ Deno.test("basic test", () => { - console.log("test has finished running"); + const value = 1 + 1; + if (value !== 2) { + throw new Error("failed"); + } }); -- cgit v1.2.3