From c6ae41fd8701b0fc5735ae4a6fa288f5cb35f03a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 4 Oct 2021 18:16:49 +0200 Subject: test: refactor lint tests into directories (#12317) Just reorganizing lint tests in such a way that adding new file in a directory doesn't change result of other tests. --- cli/tests/testdata/lint/with_config/a.ts | 4 ++++ cli/tests/testdata/lint/with_config/b.ts | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 cli/tests/testdata/lint/with_config/a.ts create mode 100644 cli/tests/testdata/lint/with_config/b.ts (limited to 'cli/tests/testdata/lint/with_config') diff --git a/cli/tests/testdata/lint/with_config/a.ts b/cli/tests/testdata/lint/with_config/a.ts new file mode 100644 index 000000000..c378218a3 --- /dev/null +++ b/cli/tests/testdata/lint/with_config/a.ts @@ -0,0 +1,4 @@ +// TODO: foo +function add(a: number, b: number): number { + return a + b; +} diff --git a/cli/tests/testdata/lint/with_config/b.ts b/cli/tests/testdata/lint/with_config/b.ts new file mode 100644 index 000000000..d5647067e --- /dev/null +++ b/cli/tests/testdata/lint/with_config/b.ts @@ -0,0 +1,4 @@ +// TODO: this file should be ignored +function subtract(a: number, b: number): number { + return a - b; +} -- cgit v1.2.3