Skip to content

Defining test timeout as a config parameter #6216

@thymikee

Description

@thymikee

🚀 Feature Proposal

I'd like to propose introducing a new config parameter config called timeout, that would accept a number or a string.

Motivation

To set a global timeout different than Jest's default, one must use a setupTestFrameworkScriptFile config and create a new file. This is a bit cumbersome, isn't it?

It would also play nice with the API we have for already: jest.setTimeout(number).

Example

"jest": {
  "timeout": 60000
}

Pitch

Why does this feature belong in the
Jest core platform?

It is a config change, duh.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions