1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-29 10:39:10 -05:00
denoland-deno/cli/tools
Casper Beyer b9a965c607
refactor(cli): introduce module specifier test modes (#11769)
This commit merges the two vectors of specifiers into a single one introducing
the concept of a "TestMode" which is a tri-state enum specifying how a specifier
is to be tested (as documentation, as an executable module or as both).

This is determined during the collection phase and determines how a specifier
will be executed based on how the specifier was collected (directly or not) and
if it has an eligible media_type when fetched.

For example "deno test README.md" is marked as documentation because, while it
is a direct inclusion it is not an executable media type therefore will only
have the fenced code blocks that can be parsed from it tested.
2021-08-26 21:21:58 +02:00
..
coverage.rs refactor: make ParsedModule implement Sync (#11581) 2021-08-06 10:36:16 -04:00
doc.rs fix(cli): deno doc panics on invalid url (#11536) 2021-07-29 04:07:25 -07:00
fmt.rs fix: parse error when transpiling code with BOM (#11688) 2021-08-16 09:28:29 +02:00
installer.rs chore: move test files to testdata directory (#11601) 2021-08-11 10:20:47 -04:00
lint.rs fix(cli/lint): don't use gray in diagnostics output for visibility (#11702) 2021-08-14 15:05:07 +02:00
mod.rs refactor(cli): introduce module specifier test modes (#11769) 2021-08-26 21:21:58 +02:00
repl.rs fix(cli/tools/repl): dont highlight candidate when completion is list (#11697) 2021-08-14 10:19:30 +02:00
standalone.rs refactor: --unsafely-ignore-certificate-errors (#11629) 2021-08-10 13:19:45 +02:00
test.rs refactor(cli): introduce module specifier test modes (#11769) 2021-08-26 21:21:58 +02:00
upgrade.rs fix(cli/tools/upgrade): check if passed version is valid (#11296) 2021-07-07 14:59:39 -04:00