summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/test/doc_only
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/test/doc_only')
-rw-r--r--cli/tests/testdata/test/doc_only/mod.ts10
1 files changed, 10 insertions, 0 deletions
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",
+ );
+});