Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 1.08 KB

File metadata and controls

33 lines (27 loc) · 1.08 KB
layout page-api
title QUnit.config.maxDepth
excerpt The depth up-to which an object will be serialized during a diff (HTML Reporter).
groups
config
redirect_from
/config/maxDepth/
version_added 1.16.0

In the HTML Reporter, the depth up-to which an object will be serialized during the diff of an assertion failure.

type `number`
default `5`

To disable the depth limit and allow infinite depth, use a value of 0.

This is used by QUnit.dump.parse().

Changelog

| UNRELEASED | Make QUnit.dump.maxDepth an alias for QUnit.config.maxDepth, allowing both to be read and changed at runtime. | QUnit 1.18 | Introduce QUnit.config.maxDepth to enable setting via preconfig. Temporary changes at runtime must change QUnit.dump.maxDepth instead. | QUnit 1.16 | Introduce QUnit.dump.maxDepth.