summaryrefslogtreecommitdiff
path: root/tests/testdata/check/npm_install_diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/check/npm_install_diagnostics')
-rw-r--r--tests/testdata/check/npm_install_diagnostics/main.out11
-rw-r--r--tests/testdata/check/npm_install_diagnostics/main.ts2
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/testdata/check/npm_install_diagnostics/main.out b/tests/testdata/check/npm_install_diagnostics/main.out
new file mode 100644
index 000000000..fe46f0e42
--- /dev/null
+++ b/tests/testdata/check/npm_install_diagnostics/main.out
@@ -0,0 +1,11 @@
+error: TS2581 [ERROR]: Cannot find name '$'. Did you mean to import jQuery? Try adding `import $ from "npm:jquery";`.
+$;
+^
+ at file:///[WILDCARD]/npm_install_diagnostics/main.ts:1:1
+
+TS2580 [ERROR]: Cannot find name 'process'.
+process;
+~~~~~~~
+ at file:///[WILDCARD]/npm_install_diagnostics/main.ts:2:1
+
+Found 2 errors.
diff --git a/tests/testdata/check/npm_install_diagnostics/main.ts b/tests/testdata/check/npm_install_diagnostics/main.ts
new file mode 100644
index 000000000..62c0c5619
--- /dev/null
+++ b/tests/testdata/check/npm_install_diagnostics/main.ts
@@ -0,0 +1,2 @@
+$;
+process;