summaryrefslogtreecommitdiff
path: root/core/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-04-15 14:24:41 +0200
committerGitHub <noreply@github.com>2022-04-15 14:24:41 +0200
commit244926e83c7d3cae3c3ae3fc14e996e3066da43e (patch)
tree9390a5d059aa08ff003439665579bef3af626fb3 /core/lib.rs
parent0e4574b2e3acb6594142021f2b3e30ad532f15ef (diff)
feat(test): format user code output (#14271)
This commit changes "deno test" to better denote user output coming from test cases. This is done by printing "---- output ----" and "---- output end ----" markers if an output is produced. The output from "console" and "Deno.core.print" is captured, as well as direct writes to "Deno.stdout" and "Deno.stderr". To achieve that new APIs were added to "deno_core" crate, that allow to replace an existing resource with a different one (while keeping resource ids intact). Resources for stdout and stderr are replaced by pipes. Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'core/lib.rs')
0 files changed, 0 insertions, 0 deletions