Skip to content

Assert that async expects are awaited or returned #54

@SimenB

Description

@SimenB

valid-expect should check that if there's a rejects or resolves on an expect, that it's either awaited or returned.

Example where we should warn:

test('some test', () => {
  expect(Promise.resolve('hello')).resolves.toBe('hello');
});

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