summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/dist/main.d.ts1
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/dist/main.mjs3
-rw-r--r--cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/package.json10
-rw-r--r--cli/tests/testdata/npm/types_exports_import_types/main.out4
-rw-r--r--cli/tests/testdata/npm/types_exports_import_types/main.ts4
5 files changed, 22 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/dist/main.d.ts b/cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/dist/main.d.ts
new file mode 100644
index 000000000..2341a14f0
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/dist/main.d.ts
@@ -0,0 +1 @@
+export function getValue(): 5;
diff --git a/cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/dist/main.mjs b/cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/dist/main.mjs
new file mode 100644
index 000000000..358b4b09e
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/dist/main.mjs
@@ -0,0 +1,3 @@
+export function getValue() {
+ return 5;
+}
diff --git a/cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/package.json
new file mode 100644
index 000000000..202a2c784
--- /dev/null
+++ b/cli/tests/testdata/npm/registry/@denotest/types-exports-import-types/1.0.0/package.json
@@ -0,0 +1,10 @@
+{
+ "name": "@denotest/types-exports-import-types",
+ "version": "1.0.0",
+ "exports": {
+ "node": {
+ "types": "./dist/main.d.ts",
+ "import": "./dist/main.mjs"
+ }
+ }
+}
diff --git a/cli/tests/testdata/npm/types_exports_import_types/main.out b/cli/tests/testdata/npm/types_exports_import_types/main.out
new file mode 100644
index 000000000..6f6cb8366
--- /dev/null
+++ b/cli/tests/testdata/npm/types_exports_import_types/main.out
@@ -0,0 +1,4 @@
+Download http://localhost:4545/npm/registry/@denotest/types-exports-import-types
+Download http://localhost:4545/npm/registry/@denotest/types-exports-import-types/1.0.0.tgz
+Check file://[WILDCARD]/types_exports_import_types/main.ts
+5
diff --git a/cli/tests/testdata/npm/types_exports_import_types/main.ts b/cli/tests/testdata/npm/types_exports_import_types/main.ts
new file mode 100644
index 000000000..00b69c438
--- /dev/null
+++ b/cli/tests/testdata/npm/types_exports_import_types/main.ts
@@ -0,0 +1,4 @@
+import { getValue } from "npm:@denotest/types-exports-import-types";
+
+const result: 5 = getValue();
+console.log(result);