Skip to content

Bug: ngMocks.globalReplace() doesn't work for HttpClientModule #10347

@Eagl9Eye

Description

@Eagl9Eye

Still the same issue for version 14.13.0. I tried ngMocks.globalReplace(HttpClientModule, HttpClientTestingModule); and ngMocks.globalKeep(HttpClientTestingModule, true). Both resulting in HttpClient not provided.

Whereas using .replace(HttpClientModule, HttpClientTestingModule) or .keep(HttpClientTestingModule) directly on MockBuilder works as expected.

Originally posted by @cluxig in #6402 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions