summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/npm/dynamic_import/other.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/npm/dynamic_import/other.ts')
-rw-r--r--cli/tests/testdata/npm/dynamic_import/other.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/dynamic_import/other.ts b/cli/tests/testdata/npm/dynamic_import/other.ts
index e5d3b6dc3..008f8833e 100644
--- a/cli/tests/testdata/npm/dynamic_import/other.ts
+++ b/cli/tests/testdata/npm/dynamic_import/other.ts
@@ -2,3 +2,10 @@ 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);
+}