jestjs / jest

Delightful JavaScript Testing.
https://jestjs.io
MIT License
44.23k stars 6.46k forks source link

RunInBand as an object option. It exists as a CLI option #10274

Open rook2pawn opened 4 years ago

rook2pawn commented 4 years ago

🚀 Feature Proposal

RunInBand as an object option.

{
    runInBand: true
}

Motivation

Because its useful and provided for on the CLI as an option --runInBand, it makes sense that there would be an equivalent in the object specifier as well.

Example

Uses the existing jest --config <configpath>

Pitch

Because it is part of the CLI option set and very useful.

Kurt-von-Laven commented 3 years ago

runInBand is especially useful to offer via jest.config.js and jest.config.ts since it helps prevent out-of-memory errors in CI environments, which can often be detected in a dynamic config file (e.g., via process.env.CI == "true").

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.

Kurt-von-Laven commented 2 years ago

I still think this is a good idea.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.

Kurt-von-Laven commented 1 year ago

Ditto.

github-actions[bot] commented 4 weeks ago

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.

rook2pawn commented 4 weeks ago

I still think this is a good idea.

Ditto