From 77ead8af20180453aa2d0db67d7856641bd5498f Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Wed, 1 Sep 2021 17:31:56 +0800 Subject: fix(cli): retain path based test mode inference (#11878) --- cli/tests/testdata/test/doc_only/mod.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cli/tests/testdata/test/doc_only/mod.ts (limited to 'cli/tests/testdata/test/doc_only') diff --git a/cli/tests/testdata/test/doc_only/mod.ts b/cli/tests/testdata/test/doc_only/mod.ts new file mode 100644 index 000000000..467d850a2 --- /dev/null +++ b/cli/tests/testdata/test/doc_only/mod.ts @@ -0,0 +1,10 @@ +/** + * ```ts + * import "./mod.ts"; + * ``` + */ +Deno.test("unreachable", function () { + throw new Error( + "modules that don't end with _test are scanned for documentation tests only should not be executed", + ); +}); -- cgit v1.2.3