diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-10-23 22:08:47 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-23 06:01:11 -0700 |
commit | dd230d520b5599c0e51cf30245a567f07b3cfb28 (patch) | |
tree | 44895680a35b6ff55ff42fc57cf9df03721e8cc7 /tests | |
parent | 8ef7da261149ed03f25bdb5ea2611f8ce84a4d78 (diff) |
Support CheckJS
Diffstat (limited to 'tests')
-rw-r--r-- | tests/error_008_checkjs.js | 6 | ||||
-rw-r--r-- | tests/error_008_checkjs.js.out | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/error_008_checkjs.js b/tests/error_008_checkjs.js new file mode 100644 index 000000000..08d4873c7 --- /dev/null +++ b/tests/error_008_checkjs.js @@ -0,0 +1,6 @@ +// console.log intentionally misspelled to trigger a type error +consol.log("hello world!"); + +// the following error should be ignored and not output to the console +// @ts-ignore +const foo = new Foo(); diff --git a/tests/error_008_checkjs.js.out b/tests/error_008_checkjs.js.out new file mode 100644 index 000000000..9220efaf1 --- /dev/null +++ b/tests/error_008_checkjs.js.out @@ -0,0 +1,10 @@ +[96m[WILDCARD]/tests/error_008_checkjs.js[WILDCARD] - [91merror[0m[90m TS2552: [0mCannot find name 'consol'. Did you mean 'console'? + +[WILDCARD] consol.log("hello world!"); +[WILDCARD]~~~~~~[0m + + [96m$asset$/lib.deno_runtime.d.ts[WILDCARD] +[WILDCARD]declare const console: console_.Console; +[WILDCARD]~~~~~~~[0m +[WILDCARD]'console' is declared here. + |