@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
16 lines (14 loc) • 434 B
text/typescript
import type { InspectOptions } from 'util';
import { inspect } from 'util';
export function inspected(value: unknown, options: InspectOptions = {}): string {
return inspect(value, {
depth: Number.POSITIVE_INFINITY,
breakLength: Number.POSITIVE_INFINITY,
customInspect: true,
compact: false,
sorted: true,
showProxy: false,
showHidden: false,
...options,
});
}