Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Latest commit

 

History

History
25 lines (22 loc) · 857 Bytes

File metadata and controls

25 lines (22 loc) · 857 Bytes
layout page-api
title QUnit.config.testTimeout
excerpt Set a global default timeout after which a test will fail.
groups
config
redirect_from
/config/testTimeout/
version_added 1.0.0

Set a global default timeout in milliseconds after which a test will fail. This helps to detect async tests that are broken, and prevents tests from running indefinitely.

type `number` or `undefined`
default `undefined`

This can be overridden on a per-test basis via assert.timeout(). If you don't have per-test overrides, it is recommended to set this to a relatively high value (e.g. 30000 for 30 seconds) to avoid intermittent test failures from unrelated delays one might in a browser or CI service.