deno/cli/tools
Matt Mastracci b6e44f91ad
fix(cli): ensure that pre- and post-test output is flushed at the appropriate times (#22611)
Some `deno_std` tests were failing to print output that was resolved
after the last test finished. In addition, output printed before tests
began would sometimes appear above the "running X tests ..." line, and
sometimes below it depending on timing.

We now guarantee that all output is flushed before and after tests run,
making the output consistent.

Pre-test and post-test output are captured in `------ pre-test output
------` and `------ post-test output ------` blocks to differentiate
them from the regular output blocks.

Here's an example of a test (that is much noisier than normal, but an
example of what the output will look like):

```
Check ./load_unload.ts
------- pre-test output -------
load
----- output end -----
running 1 test from ./load_unload.ts
test ...
------- output -------
test
----- output end -----
test ... ok ([WILDCARD])
------- post-test output -------
unload
----- output end -----
```
2024-02-28 22:12:21 +00:00
..
bench perf(jsr): fast check cache and lazy fast check graph (#22485) 2024-02-20 21:29:57 +00:00
coverage feat(unstable): single checksum per JSR package in the lockfile (#22421) 2024-02-15 14:49:35 -05:00
init chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
jupyter refactor(cli): clean up test runner channels (#22422) 2024-02-23 11:11:15 -07:00
lint perf(jsr): fast check cache and lazy fast check graph (#22485) 2024-02-20 21:29:57 +00:00
registry Revert "fix(publish): error if there are uncommitted changes (#22613)" (#22625) 2024-02-28 21:35:02 +00:00
repl refactor(cli): clean up test runner channels (#22422) 2024-02-23 11:11:15 -07:00
run feat: denort binary for deno compile (#22205) 2024-02-13 21:52:30 +05:30
test fix(cli): ensure that pre- and post-test output is flushed at the appropriate times (#22611) 2024-02-28 22:12:21 +00:00
vendor fix(lsp): import map expansion (#22553) 2024-02-24 00:21:09 -05:00
bundle.rs fix(lsp): import map expansion (#22553) 2024-02-24 00:21:09 -05:00
check.rs feat(publish): type check on publish (#22506) 2024-02-21 08:35:25 -05:00
compile.rs fix(compile): respect compiler options for emit (#22521) 2024-02-21 23:03:11 +00:00
doc.rs perf(jsr): fast check cache and lazy fast check graph (#22485) 2024-02-20 21:29:57 +00:00
fmt.rs refactor: load bytes in deno_graph (#22212) 2024-02-01 03:15:22 +00:00
info.rs perf(jsr): fast check cache and lazy fast check graph (#22485) 2024-02-20 21:29:57 +00:00
installer.rs fix(install): forward granular --unstable-* flags (#22164) 2024-02-01 09:16:37 +05:30
mod.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
task.rs fix(task): do not eagerly auto-install packages in package.json when "nodeModulesDir": false (#21858) 2024-01-08 19:30:36 -05:00
upgrade.rs feat: denort binary for deno compile (#22205) 2024-02-13 21:52:30 +05:30