summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/async_error.ts.out8
-rw-r--r--tests/config.ts.out4
-rw-r--r--tests/error_001.ts.out13
-rw-r--r--tests/error_002.ts.out13
-rw-r--r--tests/error_003_typescript.ts.out14
-rw-r--r--tests/error_004_missing_module.ts.out3
-rw-r--r--tests/error_005_missing_dynamic_import.ts.out3
-rw-r--r--tests/error_006_import_ext_failure.ts.out3
-rw-r--r--tests/error_007_any.ts.out2
-rw-r--r--tests/error_008_checkjs.js.out10
-rw-r--r--tests/error_011_bad_module_specifier.ts.out3
-rw-r--r--tests/error_012_bad_dynamic_import_specifier.ts.out3
-rw-r--r--tests/error_syntax.js.out10
13 files changed, 59 insertions, 30 deletions
diff --git a/tests/async_error.ts.out b/tests/async_error.ts.out
index 2bd958f9a..d07ba8cfe 100644
--- a/tests/async_error.ts.out
+++ b/tests/async_error.ts.out
@@ -1,9 +1,11 @@
[WILDCARD]hello
before error
world
-[WILDCARD]tests/async_error.ts:4:10
- throw Error("error");
+error: Uncaught Error: error
+[WILDCARD]tests/async_error.ts:4:9
+
+4 throw Error("error");
^
-Uncaught Error: error
+
at foo ([WILDCARD]tests/async_error.ts:4:9)
at [WILDCARD]tests/async_error.ts:7:1
diff --git a/tests/config.ts.out b/tests/config.ts.out
index a57d3056b..db5a8340e 100644
--- a/tests/config.ts.out
+++ b/tests/config.ts.out
@@ -1,7 +1,9 @@
[WILDCARD]Unsupported compiler options in "[WILDCARD]config.tsconfig.json"
The following options were ignored:
module, target
-[WILDCARD]tests/config.ts:3:5 - error TS2532: Object is possibly 'undefined'.
+[WILDCARD]error TS2532: Object is possibly 'undefined'.
+
+[WILDCARD]tests/config.ts:3:5
3 if (map.get("bar").foo) {
~~~~~~~~~~~~~~
diff --git a/tests/error_001.ts.out b/tests/error_001.ts.out
index 7a8491225..3c7e2828e 100644
--- a/tests/error_001.ts.out
+++ b/tests/error_001.ts.out
@@ -1,4 +1,9 @@
-[WILDCARD]Error: bad
- at foo (file://[WILDCARD]tests/error_001.ts:2:9)
- at bar (file://[WILDCARD]tests/error_001.ts:6:3)
- at file://[WILDCARD]tests/error_001.ts:9:1
+[WILDCARD]error: Uncaught Error: bad
+[WILDCARD]tests/error_001.ts:2:9
+
+2 throw Error("bad");
+ ^
+
+ at foo ([WILDCARD]tests/error_001.ts:2:9)
+ at bar ([WILDCARD]tests/error_001.ts:6:3)
+ at [WILDCARD]tests/error_001.ts:9:1
diff --git a/tests/error_002.ts.out b/tests/error_002.ts.out
index 0f3b08303..292544a33 100644
--- a/tests/error_002.ts.out
+++ b/tests/error_002.ts.out
@@ -1,4 +1,9 @@
-[WILDCARD]Error: exception from mod1
- at throwsError (file://[WILDCARD]/tests/subdir/mod1.ts:16:9)
- at foo (file://[WILDCARD]/tests/error_002.ts:4:3)
- at file://[WILDCARD]/tests/error_002.ts:7:1
+[WILDCARD]error: Uncaught Error: exception from mod1
+[WILDCARD]tests/subdir/mod1.ts:16:9
+
+16 throw Error("exception from mod1");
+ ^
+
+ at throwsError ([WILDCARD]tests/subdir/mod1.ts:16:9)
+ at foo ([WILDCARD]tests/error_002.ts:4:3)
+ at [WILDCARD]tests/error_002.ts:7:1
diff --git a/tests/error_003_typescript.ts.out b/tests/error_003_typescript.ts.out
index e2efd5639..f00a935e4 100644
--- a/tests/error_003_typescript.ts.out
+++ b/tests/error_003_typescript.ts.out
@@ -1,18 +1,24 @@
-[WILDCARD]/tests/error_003_typescript.ts:20:3 - error TS2322: Type '(o: T) => { v: any; f: (x: B) => string; }[]' is not assignable to type '(r: B) => Value<B>[]'.
+[WILDCARD]error TS2322: Type '(o: T) => { v: any; f: (x: B) => string; }[]' is not assignable to type '(r: B) => Value<B>[]'.
Types of parameters 'o' and 'r' are incompatible.
Type 'B' is not assignable to type 'T'.
'B' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'.
+[WILDCARD]tests/error_003_typescript.ts:20:3
+
20 values: o => [
~~~~~~
- [WILDCARD]/tests/error_003_typescript.ts:8:3
+ The expected type comes from property 'values' which is declared here on type 'C<B>'
+
+ [WILDCARD]tests/error_003_typescript.ts:8:3
8 values?: (r: T) => Array<Value<T>>;
~~~~~~
- The expected type comes from property 'values' which is declared here on type 'C<B>'
-[WILDCARD]/tests/error_003_typescript.ts:22:12 - error TS2339: Property 't' does not exist on type 'T'.
+
+error TS2339: Property 't' does not exist on type 'T'.
+
+[WILDCARD]tests/error_003_typescript.ts:22:12
22 v: o.t,
^
diff --git a/tests/error_004_missing_module.ts.out b/tests/error_004_missing_module.ts.out
index ca43bd5ff..6add996f2 100644
--- a/tests/error_004_missing_module.ts.out
+++ b/tests/error_004_missing_module.ts.out
@@ -1,4 +1,5 @@
-[WILDCARD]Uncaught NotFound: Cannot resolve module "[WILDCARD]/bad-module.ts" from "[WILDCARD]/tests/error_004_missing_module.ts"
+[WILDCARD]error: Uncaught NotFound: Cannot resolve module "[WILDCARD]/bad-module.ts" from "[WILDCARD]tests/error_004_missing_module.ts"
+[WILDCARD] js/errors.ts:[WILDCARD]
at DenoError (js/errors.ts:[WILDCARD])
at maybeError (js/errors.ts:[WILDCARD])
at maybeThrowError (js/errors.ts:[WILDCARD])
diff --git a/tests/error_005_missing_dynamic_import.ts.out b/tests/error_005_missing_dynamic_import.ts.out
index ef4972940..7c161e754 100644
--- a/tests/error_005_missing_dynamic_import.ts.out
+++ b/tests/error_005_missing_dynamic_import.ts.out
@@ -1,4 +1,5 @@
-[WILDCARD]NotFound: Cannot resolve module "[WILDCARD]/bad-module.ts" from "[WILDCARD]/tests/error_005_missing_dynamic_import.ts"
+[WILDCARD]error: Uncaught NotFound: Cannot resolve module "[WILDCARD]/bad-module.ts" from "[WILDCARD]tests/error_005_missing_dynamic_import.ts"
+[WILDCARD] js/errors.ts:[WILDCARD]
at DenoError (js/errors.ts:[WILDCARD])
at maybeError (js/errors.ts:[WILDCARD])
at maybeThrowError (js/errors.ts:[WILDCARD])
diff --git a/tests/error_006_import_ext_failure.ts.out b/tests/error_006_import_ext_failure.ts.out
index 335a7f4a8..797b78502 100644
--- a/tests/error_006_import_ext_failure.ts.out
+++ b/tests/error_006_import_ext_failure.ts.out
@@ -1,4 +1,5 @@
-[WILDCARD]Uncaught NotFound: Cannot resolve module "[WILDCARD]/non-existent" from "[WILDCARD]/tests/error_006_import_ext_failure.ts"
+[WILDCARD]error: Uncaught NotFound: Cannot resolve module "[WILDCARD]/non-existent" from "[WILDCARD]tests/error_006_import_ext_failure.ts"
+[WILDCARD] js/errors.ts:[WILDCARD]
at DenoError (js/errors.ts:[WILDCARD])
at maybeError (js/errors.ts:[WILDCARD])
at maybeThrowError (js/errors.ts:[WILDCARD])
diff --git a/tests/error_007_any.ts.out b/tests/error_007_any.ts.out
index f577d6070..45dbffd04 100644
--- a/tests/error_007_any.ts.out
+++ b/tests/error_007_any.ts.out
@@ -1 +1 @@
-[WILDCARD]Uncaught #<Object>
+[WILDCARD]error: Uncaught #<Object>
diff --git a/tests/error_008_checkjs.js.out b/tests/error_008_checkjs.js.out
index 2341af23f..5c50e8513 100644
--- a/tests/error_008_checkjs.js.out
+++ b/tests/error_008_checkjs.js.out
@@ -1,5 +1,7 @@
-[WILDCARD]tests/error_008_checkjs.js:2:0
-consol.log("hello world!");
-^
-Uncaught ReferenceError: consol is not defined
+[WILDCARD]error: Uncaught ReferenceError: consol is not defined
+[WILDCARD]tests/error_008_checkjs.js:2:1
+
+2 consol.log("hello world!");
+ ^
+
at [WILDCARD]tests/error_008_checkjs.js:2:1
diff --git a/tests/error_011_bad_module_specifier.ts.out b/tests/error_011_bad_module_specifier.ts.out
index ed0052062..422532765 100644
--- a/tests/error_011_bad_module_specifier.ts.out
+++ b/tests/error_011_bad_module_specifier.ts.out
@@ -1,4 +1,5 @@
-[WILDCARD]Uncaught RelativeUrlWithCannotBeABaseBase: relative URL with a cannot-be-a-base base
+[WILDCARD]error: Uncaught RelativeUrlWithCannotBeABaseBase: relative URL with a cannot-be-a-base base
+[WILDCARD] js/errors.ts:[WILDCARD]
at DenoError (js/errors.ts:[WILDCARD])
at maybeError (js/errors.ts:[WILDCARD])
at maybeThrowError (js/errors.ts:[WILDCARD])
diff --git a/tests/error_012_bad_dynamic_import_specifier.ts.out b/tests/error_012_bad_dynamic_import_specifier.ts.out
index cdfc547f9..1337028b2 100644
--- a/tests/error_012_bad_dynamic_import_specifier.ts.out
+++ b/tests/error_012_bad_dynamic_import_specifier.ts.out
@@ -1,4 +1,5 @@
-[WILDCARD]Uncaught RelativeUrlWithCannotBeABaseBase: relative URL with a cannot-be-a-base base
+[WILDCARD]error: Uncaught RelativeUrlWithCannotBeABaseBase: relative URL with a cannot-be-a-base base
+[WILDCARD] js/errors.ts:[WILDCARD]
at DenoError (js/errors.ts:[WILDCARD])
at maybeError (js/errors.ts:[WILDCARD])
at maybeThrowError (js/errors.ts:[WILDCARD])
diff --git a/tests/error_syntax.js.out b/tests/error_syntax.js.out
index ac2f99f1f..6253f3dd5 100644
--- a/tests/error_syntax.js.out
+++ b/tests/error_syntax.js.out
@@ -1,4 +1,6 @@
-[WILDCARD]tests/error_syntax.js:3:5
-(the following is a syntax error ^^ ! )
- ^^^^^^^^^
-Uncaught SyntaxError: Unexpected identifier
+error: Uncaught SyntaxError: Unexpected identifier
+[WILDCARD]tests/error_syntax.js:3:6
+
+3 (the following is a syntax error ^^ ! )
+ ~~~~~~~~~
+