Skip to content

Feature request: More configuration options #2

@alexander-svendsen

Description

@alexander-svendsen

It is possible to configure this ourselves through the middleware api, but it would be more epic if the library had native support for these things:

const mock = FetchMock.configure({
  enableFallback: boolean,
  delay: number,         // each request is delayed by ms
  failureRate: number // unsure about this one, mabye % of request that fails
  
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions