summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/commonjs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/commonjs')
-rw-r--r--cli/tests/testdata/commonjs/init.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/cli/tests/testdata/commonjs/init.js b/cli/tests/testdata/commonjs/init.js
deleted file mode 100644
index 77992a0ad..000000000
--- a/cli/tests/testdata/commonjs/init.js
+++ /dev/null
@@ -1,10 +0,0 @@
-import { fromFileUrl } from "../../../../test_util/std/path/mod.ts";
-
-const DENO_NODE_COMPAT_URL = Deno.env.get("DENO_NODE_COMPAT_URL");
-const moduleAllUrl = `${DENO_NODE_COMPAT_URL}node/module_all.ts`;
-let moduleName = import.meta.resolve(Deno.args[0]);
-moduleName = fromFileUrl(moduleName);
-
-const moduleAll = await import(moduleAllUrl);
-Deno[Deno.internal].node.initialize(moduleAll.default);
-Deno[Deno.internal].require.Module._load(moduleName, null, true);