1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/cli/js
Sebastien Filion 4534db656d
feat(test): Add support for regex in filter flag (#6343)
Currently, the documentation makes it sound like the test subcommand's filter
flag could accept some kind of pattern matching value like a glob or a regex,
although the function "createFilterFn" accepts a regex as an argument, there's
no way to pass an actual regex value from the CLI.

This commit makes it possible to pass a string that could be cast as regex 
when string matches "^/.*/$".

With this change, a user can use the filter flag as follow:

deno test --filter "/test-.+/"

Also tested that `\` get escaped properly, on MacOS at least, and this is 
also a valid flag:

deno test --filter "/test-\d+/"
2020-07-07 15:13:38 +02:00
..
ops clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
web clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
buffer.ts fix(cli): Buffer.bytes() ArrayBuffer size (#6511) 2020-06-27 13:52:27 +02:00
build.ts BREAKING: Use LLVM target triple for Deno.build (#4948) 2020-04-28 12:35:23 -04:00
colors.ts Provide better ANSI colorized output when inspecting objects (#5404) 2020-05-19 14:19:26 -04:00
compiler.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
compiler_api.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
compiler_options.ts refactor: merge TS compiler into single file (#5091) 2020-05-06 00:19:18 +02:00
core.ts Use globalThis to reference global scope (#3719) 2020-01-20 09:30:30 -05:00
deno.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
deno_unstable.ts feat(unstable): add Deno.fdatasyncSync and fdatasync (#6403) 2020-06-26 08:36:35 -04:00
diagnostics.ts Update to Prettier 2 and use ES Private Fields (#4498) 2020-03-28 13:03:49 -04:00
diagnostics_util.ts Remove Deno.dir and dirs dependency (#6385) 2020-06-20 23:49:27 -04:00
error_stack.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
errors.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
files.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
globals.ts core: add Deno.core.dispatchByName (#6395) 2020-06-21 16:34:43 +02:00
globals_unstable.ts Unstable methods should not appear in runtime or d.ts (#4957) 2020-04-30 11:23:40 -04:00
internals.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
io.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
lib.deno.ns.d.ts fix(cli/js/process): Fix process socket types (#6676) 2020-07-07 12:21:49 +02:00
lib.deno.shared_globals.d.ts Fix definition of URL constructor (#6653) 2020-07-06 17:39:13 -04:00
lib.deno.unstable.d.ts doc: add unstable note to Deno.ftruncateSync and ftruncate (#6590) 2020-07-02 09:34:19 -04:00
lib.deno.window.d.ts feat(workers): "crypto" global accessible in Worker scope (#5121) 2020-05-08 14:30:53 +02:00
lib.deno.worker.d.ts BREAKING: remove window.location and self.location (#5034) 2020-05-01 20:15:28 +02:00
main.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
net.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
net_unstable.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
permissions.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
process.ts fix(cli/js/process): Fix process socket types (#6676) 2020-07-07 12:21:49 +02:00
rbtree.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
read_file.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
read_text_file.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
repl.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
runtime.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
runtime_main.ts feat: Add Deno.mainModule (#6180) 2020-06-10 23:00:29 -04:00
runtime_worker.ts fix: Better use of @ts-expect-error (#6038) 2020-06-02 00:24:44 -04:00
signals.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
testing.ts feat(test): Add support for regex in filter flag (#6343) 2020-07-07 15:13:38 +02:00
tls.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
ts_global.d.ts chore: improve type safety of cli/js/compiler (#6647) 2020-07-05 20:13:27 -04:00
util.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
version.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
write_file.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00
write_text_file.ts clean up code in cli/js (#6611) 2020-07-06 21:45:39 -04:00