From de641838831a90b142eceab5aa9df269084d83cc Mon Sep 17 00:00:00 2001 From: yw662 Date: Wed, 7 Apr 2021 03:52:56 -0700 Subject: docs: list globs used by `deno test` (#9976) --- docs/testing.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/testing.md') diff --git a/docs/testing.md b/docs/testing.md index 9d9f2de04..80af1a810 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -3,6 +3,12 @@ Deno has a built-in test runner that you can use for testing JavaScript or TypeScript code. +`deno test` will search in `./*` and `./**/*` recursively, for test files: + +- named `test.{ts, tsx, js, mjs, jsx}`, +- or ending with `.test.{ts, tsx, js, mjs, jsx}`, +- or ending with `_test.{ts, tsx, js, mjs, jsx}` + ## Writing tests To define a test you need to call `Deno.test` with a name and function to be -- cgit v1.2.3