Skip to content

Print errors when test runner is interrupted #3373

@gajus

Description

@gajus

Clear and concise description of the problem

Currently, if test runner is interrupted with sigint, it just exits without producing useful output.

Suggested solution

If test runner is interrupted with sigint, then the test runner should print errors before exiting.

❯ |@contra/contra-api| src/foo.test.ts (15) 370ms
✓ foo
× bar
· baz
^C

After ^C was received, I would expect runner to provide context about × bar failure.

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions