summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-12-16 10:45:41 +0000
committerGitHub <noreply@github.com>2021-12-16 21:45:41 +1100
commit9ffc7edc23444be8bdcc1befd3709b309780e3d1 (patch)
tree551a223016816b92a5f8cf57949c331bf087a960 /cli/tests/testdata
parente28fb70aeecf548d150312c30f7f32b60c4fdece (diff)
refactor(cli): use GraphData for check and emit (#12960)
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/compiler_api_test.ts2
-rw-r--r--cli/tests/testdata/error_027_bundle_with_bare_import.ts.out1
-rw-r--r--cli/tests/testdata/error_type_definitions.ts.out1
-rw-r--r--cli/tests/testdata/jsx/deno-jsx-error.jsonc6
-rw-r--r--cli/tests/testdata/jsx_import_source_error.out2
-rw-r--r--cli/tests/testdata/reference_types_error.js2
-rw-r--r--cli/tests/testdata/reference_types_error.js.out2
7 files changed, 15 insertions, 1 deletions
diff --git a/cli/tests/testdata/compiler_api_test.ts b/cli/tests/testdata/compiler_api_test.ts
index b9755c29a..f51b5647c 100644
--- a/cli/tests/testdata/compiler_api_test.ts
+++ b/cli/tests/testdata/compiler_api_test.ts
@@ -307,7 +307,7 @@ Deno.test({
);
assertEquals(diagnostics.length, 0);
assert(!ignoredOptions);
- assertEquals(stats.length, 12);
+ assertEquals(stats.length, 0);
assertEquals(
Object.keys(files).sort(),
["deno:///bundle.js.map", "deno:///bundle.js"].sort(),
diff --git a/cli/tests/testdata/error_027_bundle_with_bare_import.ts.out b/cli/tests/testdata/error_027_bundle_with_bare_import.ts.out
index 12f38c1c5..e2edd118a 100644
--- a/cli/tests/testdata/error_027_bundle_with_bare_import.ts.out
+++ b/cli/tests/testdata/error_027_bundle_with_bare_import.ts.out
@@ -1 +1,2 @@
[WILDCARD]error: Relative import path "foo" not prefixed with / or ./ or ../
+ at file:///[WILDCARD]/error_027_bundle_with_bare_import.ts:[WILDCARD]
diff --git a/cli/tests/testdata/error_type_definitions.ts.out b/cli/tests/testdata/error_type_definitions.ts.out
index a0a536f78..5e1d73ca4 100644
--- a/cli/tests/testdata/error_type_definitions.ts.out
+++ b/cli/tests/testdata/error_type_definitions.ts.out
@@ -1 +1,2 @@
[WILDCARD]error: Relative import path "baz" not prefixed with / or ./ or ../
+ at [WILDCARD]/type_definitions/bar.d.ts:[WILDCARD]
diff --git a/cli/tests/testdata/jsx/deno-jsx-error.jsonc b/cli/tests/testdata/jsx/deno-jsx-error.jsonc
new file mode 100644
index 000000000..37cb4dd91
--- /dev/null
+++ b/cli/tests/testdata/jsx/deno-jsx-error.jsonc
@@ -0,0 +1,6 @@
+{
+ "compilerOptions": {
+ "jsx": "react-jsx",
+ "jsxImportSource": "./nonexistent"
+ }
+}
diff --git a/cli/tests/testdata/jsx_import_source_error.out b/cli/tests/testdata/jsx_import_source_error.out
new file mode 100644
index 000000000..b9758a99e
--- /dev/null
+++ b/cli/tests/testdata/jsx_import_source_error.out
@@ -0,0 +1,2 @@
+error: Cannot load module "file:///[WILDCARD]/nonexistent/jsx-runtime".
+ at file:///[WILDCARD]/deno-jsx-error.jsonc:1:1
diff --git a/cli/tests/testdata/reference_types_error.js b/cli/tests/testdata/reference_types_error.js
new file mode 100644
index 000000000..68b6c2136
--- /dev/null
+++ b/cli/tests/testdata/reference_types_error.js
@@ -0,0 +1,2 @@
+/// <reference types="./nonexistent.d.ts" />
+export const a = 1;
diff --git a/cli/tests/testdata/reference_types_error.js.out b/cli/tests/testdata/reference_types_error.js.out
new file mode 100644
index 000000000..89b450520
--- /dev/null
+++ b/cli/tests/testdata/reference_types_error.js.out
@@ -0,0 +1,2 @@
+error: Cannot load module "file:///[WILDCARD]/nonexistent.d.ts".
+ at file:///[WILDCARD]/reference_types_error.js:1:23