Skip to content

Testing: Provide simple mocking #16

@alex3683

Description

@alex3683

For anyone using the hal-http-client there should be a convenient way to mock responses for requests in a widget spec. As a basis an existing fetch-mock library could be used.
An important feature would be the possibility to wait for a certain request to have been made. The fetch-mock mentioned above allows for naming mocked requests to allow for inspection later. This could also be used to allow for waiting for a given request. Currently some tests need "random" setTimeouts instead to wait for completion ....

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions