summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/dynamic_import
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/npm/dynamic_import')
-rw-r--r--cli/tests/testdata/npm/dynamic_import/main.out6
-rw-r--r--cli/tests/testdata/npm/dynamic_import/main.ts3
-rw-r--r--cli/tests/testdata/npm/dynamic_import/other.ts11
3 files changed, 0 insertions, 20 deletions
diff --git a/cli/tests/testdata/npm/dynamic_import/main.out b/cli/tests/testdata/npm/dynamic_import/main.out
deleted file mode 100644
index cefb3ad44..000000000
--- a/cli/tests/testdata/npm/dynamic_import/main.out
+++ /dev/null
@@ -1,6 +0,0 @@
-A
-Download http://localhost:4545/npm/registry/chalk
-Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz
-B
-C
-devDependency import failed: TypeError: Relative import path "xo"[WILDCARD] \ No newline at end of file
diff --git a/cli/tests/testdata/npm/dynamic_import/main.ts b/cli/tests/testdata/npm/dynamic_import/main.ts
deleted file mode 100644
index 8b850a8ee..000000000
--- a/cli/tests/testdata/npm/dynamic_import/main.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-const importName = "./other.ts";
-console.log("A");
-await import(importName);
diff --git a/cli/tests/testdata/npm/dynamic_import/other.ts b/cli/tests/testdata/npm/dynamic_import/other.ts
deleted file mode 100644
index 008f8833e..000000000
--- a/cli/tests/testdata/npm/dynamic_import/other.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-console.log("B");
-const chalk = (await import("npm:chalk@5")).default;
-
-console.log(chalk.green("C"));
-
-try {
- // Trying to import a devDependency should result in an error
- await import("xo");
-} catch (e) {
- console.error("devDependency import failed:", e);
-}