diff options
author | yw662 <yw662@njit.edu> | 2021-04-07 03:52:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 12:52:56 +0200 |
commit | de641838831a90b142eceab5aa9df269084d83cc (patch) | |
tree | a2222988b8e92b640732ccf3266c26a867279030 /docs/testing.md | |
parent | 26c8d824d1d58e1588b8bc854814cb4eeccae1e0 (diff) |
docs: list globs used by `deno test` (#9976)
Diffstat (limited to 'docs/testing.md')
-rw-r--r-- | docs/testing.md | 6 |
1 files changed, 6 insertions, 0 deletions
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 |