diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration/run_tests.rs | 13 | ||||
-rw-r--r-- | cli/tests/testdata/no_check_remote.ts | 3 | ||||
-rw-r--r-- | cli/tests/testdata/no_check_remote.ts.disabled.out | 4 | ||||
-rw-r--r-- | cli/tests/testdata/no_check_remote.ts.enabled.out | 1 | ||||
-rw-r--r-- | cli/tests/testdata/subdir/type_error.ts | 1 |
5 files changed, 22 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 47041e499..33ca787d9 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -920,6 +920,19 @@ itest!(no_check_decorators { output: "no_check_decorators.ts.out", }); +itest!(check_remote { + args: "run --quiet --reload no_check_remote.ts", + output: "no_check_remote.ts.disabled.out", + exit_code: 1, + http_server: true, +}); + +itest!(no_check_remote { + args: "run --quiet --reload --no-check=remote no_check_remote.ts", + output: "no_check_remote.ts.enabled.out", + http_server: true, +}); + itest!(runtime_decorators { args: "run --quiet --reload --no-check runtime_decorators.ts", output: "runtime_decorators.ts.out", diff --git a/cli/tests/testdata/no_check_remote.ts b/cli/tests/testdata/no_check_remote.ts new file mode 100644 index 000000000..2ae8c2692 --- /dev/null +++ b/cli/tests/testdata/no_check_remote.ts @@ -0,0 +1,3 @@ +import * as a from "http://localhost:4545/subdir/type_error.ts"; + +console.log(a.a); diff --git a/cli/tests/testdata/no_check_remote.ts.disabled.out b/cli/tests/testdata/no_check_remote.ts.disabled.out new file mode 100644 index 000000000..344264634 --- /dev/null +++ b/cli/tests/testdata/no_check_remote.ts.disabled.out @@ -0,0 +1,4 @@ +error: TS2322 [ERROR]: Type '12' is not assignable to type '"a"'. +export const a: "a" = 12; + ^ + at http://localhost:4545/subdir/type_error.ts:1:14 diff --git a/cli/tests/testdata/no_check_remote.ts.enabled.out b/cli/tests/testdata/no_check_remote.ts.enabled.out new file mode 100644 index 000000000..48082f72f --- /dev/null +++ b/cli/tests/testdata/no_check_remote.ts.enabled.out @@ -0,0 +1 @@ +12 diff --git a/cli/tests/testdata/subdir/type_error.ts b/cli/tests/testdata/subdir/type_error.ts new file mode 100644 index 000000000..cc3c1d29d --- /dev/null +++ b/cli/tests/testdata/subdir/type_error.ts @@ -0,0 +1 @@ +export const a: "a" = 12; |