diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-08-20 15:14:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 15:14:37 -0400 |
commit | a7c002ae634b20a2f84c90417327a88c9ac2df99 (patch) | |
tree | c21a179412ee70f59eb0c38acfbe5d4998870224 /tests/node_compat | |
parent | 2f47b4d1fd8e37a5e45bc1b8f3623708e0f95e2e (diff) |
chore: enable no-console dlint rule (#25113)
Diffstat (limited to 'tests/node_compat')
-rwxr-xr-x | tests/node_compat/runner/setup.ts | 2 | ||||
-rw-r--r-- | tests/node_compat/test.ts | 2 | ||||
-rw-r--r-- | tests/node_compat/test/fixtures/child-process-spawn-node.js | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/tests/node_compat/runner/setup.ts b/tests/node_compat/runner/setup.ts index 95fee6a20..37f1aba9b 100755 --- a/tests/node_compat/runner/setup.ts +++ b/tests/node_compat/runner/setup.ts @@ -1,6 +1,8 @@ #!/usr/bin/env -S deno run --allow-read=. --allow-write=. --allow-run=git --config=tests/config/deno.json // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// deno-lint-ignore-file no-console + /** This copies the test files according to the config file `tests/node_compat/config.jsonc` */ import { walk } from "@std/fs/walk"; diff --git a/tests/node_compat/test.ts b/tests/node_compat/test.ts index b5c9514a3..f6db4ee1a 100644 --- a/tests/node_compat/test.ts +++ b/tests/node_compat/test.ts @@ -1,5 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// deno-lint-ignore-file no-console + /** * This script will run the test files specified in the configuration file. * diff --git a/tests/node_compat/test/fixtures/child-process-spawn-node.js b/tests/node_compat/test/fixtures/child-process-spawn-node.js index da2b557c9..d403aabf9 100644 --- a/tests/node_compat/test/fixtures/child-process-spawn-node.js +++ b/tests/node_compat/test/fixtures/child-process-spawn-node.js @@ -1,7 +1,5 @@ const assert = require("assert"); -// TODO(kt3k): Uncomment this when util.debuglog is added -// const debug = require('util').debuglog('test'); -const debug = console.log; +const debug = require('util').debuglog('test'); function onmessage(m) { debug("CHILD got message:", m); |