From 4c2380af5c8561fc0a5f8279c1c7336680d026ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 16 Feb 2023 14:30:14 +0100 Subject: test: add unit tests from std/node (#17794) Adds two test files: "cli/tests/unit_node/process_test.ts" and "cli/tests/unit_node/child_process_test.ts" --------- Co-authored-by: Yoshiya Hinosawa --- cli/tests/unit_node/testdata/child_process_unref.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cli/tests/unit_node/testdata/child_process_unref.js (limited to 'cli/tests/unit_node/testdata/child_process_unref.js') diff --git a/cli/tests/unit_node/testdata/child_process_unref.js b/cli/tests/unit_node/testdata/child_process_unref.js new file mode 100644 index 000000000..cc7815d97 --- /dev/null +++ b/cli/tests/unit_node/testdata/child_process_unref.js @@ -0,0 +1,9 @@ +import cp from "node:child_process"; +import * as path from "node:path"; + +const script = path.join( + path.dirname(path.fromFileUrl(import.meta.url)), + "infinite_loop.js", +); +const childProcess = cp.spawn(Deno.execPath(), ["run", script]); +childProcess.unref(); -- cgit v1.2.3