Skip to content

Feature Request: Allow to run a jest runner in band #5706

@DanielMSchmidt

Description

@DanielMSchmidt

Do you want to request a feature or report a bug?
Feature

What is the current behavior?
When I have a third-party testing tool that is not allowed to run in parallel I am unable to use it in the integration with jest, besides running every single test in band. The concrete thrid-party tool is cypress, it can't be run in parallel.

In my setup I use jest, jest-runner-eslint, jest-runner-stylelint (jest-runner-tsc is planned) and I would like to add something like jest-runner-cypress. As I can not share a lock between two or more processes (without using redis or something similar) I am unable to build / extend such a runner to run the processes in band. As far as I can see there are two possible solutions to this problem:

  1. User Land
    Allow a project to be configured as runInBand, reverting the decision already made by @cpojer

  2. Runner Land
    Let the runner expose a config that sets it as runInBand only

This relates to #3215 but I wanted to describe my use case a bit more in detail as well as the different solutions that would be possible for my problem, I hope this was okay.

Thank you for taking the time to read through this 👍 If you make a decision I would be happy to provide a PR (or at least to try to do so)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions