summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/npm/no_unstable/main.out1
-rw-r--r--cli/tests/testdata/npm/no_unstable/main.ts3
2 files changed, 4 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/no_unstable/main.out b/cli/tests/testdata/npm/no_unstable/main.out
new file mode 100644
index 000000000..5a5a4e5a7
--- /dev/null
+++ b/cli/tests/testdata/npm/no_unstable/main.out
@@ -0,0 +1 @@
+error: Unstable use of npm specifiers. The --unstable flag must be provided.
diff --git a/cli/tests/testdata/npm/no_unstable/main.ts b/cli/tests/testdata/npm/no_unstable/main.ts
new file mode 100644
index 000000000..bb14e62c5
--- /dev/null
+++ b/cli/tests/testdata/npm/no_unstable/main.ts
@@ -0,0 +1,3 @@
+import chalk from "npm:chalk@5";
+
+console.log(chalk.green("hello"));