summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/import_json/main.js
diff options
context:
space:
mode:
authorawait-ovo <13152410380@163.com>2023-08-02 07:20:08 +0800
committerGitHub <noreply@github.com>2023-08-01 23:20:08 +0000
commitfec34d8069517be195193cd3578e7988d39fd0e1 (patch)
tree3fa2192d9bdd9a6d3e20b7fe32b726f86cde2e09 /cli/tests/testdata/npm/import_json/main.js
parent21f1b2f62b1fac9089c214d9b862fce2359d30fd (diff)
fix(ext/node): fix import json using npm specifier (#19723)
Diffstat (limited to 'cli/tests/testdata/npm/import_json/main.js')
-rw-r--r--cli/tests/testdata/npm/import_json/main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/import_json/main.js b/cli/tests/testdata/npm/import_json/main.js
new file mode 100644
index 000000000..b752bdef8
--- /dev/null
+++ b/cli/tests/testdata/npm/import_json/main.js
@@ -0,0 +1,4 @@
+import json from "npm:@denotest/binary-package@1/package.json" assert {
+ type: "json",
+};
+console.log(json);