From a29d88b43bdc3bf08a30fdb64d35beef8839f246 Mon Sep 17 00:00:00 2001 From: Geert-Jan Zwiers Date: Sun, 26 Mar 2023 16:55:58 +0200 Subject: feat(bench): add `--no-run` flag (#18433) --- cli/tests/testdata/bench/no_run.out | 5 +++++ cli/tests/testdata/bench/no_run.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 cli/tests/testdata/bench/no_run.out create mode 100644 cli/tests/testdata/bench/no_run.ts (limited to 'cli/tests/testdata') diff --git a/cli/tests/testdata/bench/no_run.out b/cli/tests/testdata/bench/no_run.out new file mode 100644 index 000000000..5d40f1d3b --- /dev/null +++ b/cli/tests/testdata/bench/no_run.out @@ -0,0 +1,5 @@ +Check [WILDCARD]/bench/no_run.ts +error: TS2322 [ERROR]: Type 'number' is not assignable to type 'string'. +const _value: string = 1; + ~~~~~~ + at [WILDCARD]/bench/no_run.ts:1:7 diff --git a/cli/tests/testdata/bench/no_run.ts b/cli/tests/testdata/bench/no_run.ts new file mode 100644 index 000000000..c7a5dc1e8 --- /dev/null +++ b/cli/tests/testdata/bench/no_run.ts @@ -0,0 +1,2 @@ +const _value: string = 1; +console.log("this should not be run"); -- cgit v1.2.3