Skip to content
This repository was archived by the owner on Aug 22, 2022. It is now read-only.
This repository was archived by the owner on Aug 22, 2022. It is now read-only.

Add timeout option #14

@mohd-akram

Description

@mohd-akram

This would be helpful to catch promises that don't resolve, or that take too long to resolve. An example of a test that currently "succeeds" despite not completing:

module.exports = async (t) => {
  const x = await new Promise(() => {});
  t.equal(x, 2);
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions