summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/create_require
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-11-19 20:32:39 +0900
committerGitHub <noreply@github.com>2022-11-19 20:32:39 +0900
commit7ab08130a06850f7d30bca8088799926f03e2a84 (patch)
tree40f35c4aac0d5d0ad1333889306d371784e30c2d /cli/tests/testdata/npm/create_require
parent763d492ed69c3a22310dd5c758995fbbbf3e06b8 (diff)
fix(ext/node): handle URL in createRequire (#16682)
Diffstat (limited to 'cli/tests/testdata/npm/create_require')
-rw-r--r--cli/tests/testdata/npm/create_require/main.out6
-rw-r--r--cli/tests/testdata/npm/create_require/main.ts1
2 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/create_require/main.out b/cli/tests/testdata/npm/create_require/main.out
new file mode 100644
index 000000000..ebd96c120
--- /dev/null
+++ b/cli/tests/testdata/npm/create_require/main.out
@@ -0,0 +1,6 @@
+[WILDCARD]
+function
+function
+The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received https://example.com/
+The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received https://example.com/
+The argument 'filename' must be a file URL object, file URL string, or absolute path string. Received 1
diff --git a/cli/tests/testdata/npm/create_require/main.ts b/cli/tests/testdata/npm/create_require/main.ts
new file mode 100644
index 000000000..625c734aa
--- /dev/null
+++ b/cli/tests/testdata/npm/create_require/main.ts
@@ -0,0 +1 @@
+import "npm:@denotest/create-require@1.0.0";