How can I selectively run Deno tests based on their filenames?
Consider the following test files:
number_1_test.ts
number_2_test.ts
string_test.ts
If I want to only run tests with filenames starting with number*
,
I am unable to use either of these commands:
deno test number*
or:
deno test --filter number*
What is the correct approach in this scenario?
Here is the syntax for running Deno tests:
deno test [OPTIONS] [files]... [-- <SCRIPT_ARG>...]
--filter <filter>: Run tests with this string or pattern in the test name