summaryrefslogtreecommitdiff
path: root/tests/specs/npm/lossy_utf8_script_from_cjs/main.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/npm/lossy_utf8_script_from_cjs/main.mjs')
-rw-r--r--tests/specs/npm/lossy_utf8_script_from_cjs/main.mjs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/specs/npm/lossy_utf8_script_from_cjs/main.mjs b/tests/specs/npm/lossy_utf8_script_from_cjs/main.mjs
new file mode 100644
index 000000000..a9e70adfb
--- /dev/null
+++ b/tests/specs/npm/lossy_utf8_script_from_cjs/main.mjs
@@ -0,0 +1,10 @@
+import { createRequire } from "node:module";
+
+// Import this so that deno_graph knows to download this file.
+if (false) import("npm:@denotest/lossy-utf8-script@1.0.0");
+
+const require = createRequire(import.meta.url);
+
+const mod = require("@denotest/lossy-utf8-script");
+
+console.log(mod);