mirror of
https://github.com/denoland/deno.git
synced 2025-09-30 14:11:14 +00:00
feat(Deno.inspect): Add sorted, trailingComma, compact and iterableLimit to InspectOptions (#6591)
This commit is contained in:
parent
40d081d3d9
commit
5ec41cbcc2
10 changed files with 463 additions and 185 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { gray, green, italic, red, yellow } from "./colors.ts";
|
||||
import { exit } from "./ops/os.ts";
|
||||
import { Console, stringifyArgs } from "./web/console.ts";
|
||||
import { Console, inspectArgs } from "./web/console.ts";
|
||||
import { stdout } from "./files.ts";
|
||||
import { exposeForTest } from "./internals.ts";
|
||||
import { TextEncoder } from "./web/text_encoding.ts";
|
||||
|
@ -205,7 +205,7 @@ function reportToConsole(message: TestMessage): void {
|
|||
|
||||
for (const { name, error } of failures) {
|
||||
log(name);
|
||||
log(stringifyArgs([error!]));
|
||||
log(inspectArgs([error!]));
|
||||
log("");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue