summaryrefslogtreecommitdiff
path: root/tests/testdata/run/node_builtin_modules
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/node_builtin_modules')
-rw-r--r--tests/testdata/run/node_builtin_modules/mod.js5
-rw-r--r--tests/testdata/run/node_builtin_modules/mod.js.out3
-rw-r--r--tests/testdata/run/node_builtin_modules/mod.ts5
-rw-r--r--tests/testdata/run/node_builtin_modules/mod.ts.out3
4 files changed, 16 insertions, 0 deletions
diff --git a/tests/testdata/run/node_builtin_modules/mod.js b/tests/testdata/run/node_builtin_modules/mod.js
new file mode 100644
index 000000000..a01ac4422
--- /dev/null
+++ b/tests/testdata/run/node_builtin_modules/mod.js
@@ -0,0 +1,5 @@
+import { createRequire } from "node:module";
+console.log(createRequire);
+import process from "node:process";
+console.log(process.version);
+console.log(process.argv);
diff --git a/tests/testdata/run/node_builtin_modules/mod.js.out b/tests/testdata/run/node_builtin_modules/mod.js.out
new file mode 100644
index 000000000..844e3d927
--- /dev/null
+++ b/tests/testdata/run/node_builtin_modules/mod.js.out
@@ -0,0 +1,3 @@
+[Function: createRequire]
+v[WILDCARD].[WILDCARD].[WILDCARD]
+[ [Getter], [Getter], "hello", "there" ]
diff --git a/tests/testdata/run/node_builtin_modules/mod.ts b/tests/testdata/run/node_builtin_modules/mod.ts
new file mode 100644
index 000000000..a01ac4422
--- /dev/null
+++ b/tests/testdata/run/node_builtin_modules/mod.ts
@@ -0,0 +1,5 @@
+import { createRequire } from "node:module";
+console.log(createRequire);
+import process from "node:process";
+console.log(process.version);
+console.log(process.argv);
diff --git a/tests/testdata/run/node_builtin_modules/mod.ts.out b/tests/testdata/run/node_builtin_modules/mod.ts.out
new file mode 100644
index 000000000..844e3d927
--- /dev/null
+++ b/tests/testdata/run/node_builtin_modules/mod.ts.out
@@ -0,0 +1,3 @@
+[Function: createRequire]
+v[WILDCARD].[WILDCARD].[WILDCARD]
+[ [Getter], [Getter], "hello", "there" ]