Skip to content

Disable caching in tests #547

@ahoiroman

Description

@ahoiroman

Hi there,

I'd like to disable the cache in all my test scenarios, as I am using fixtures.

I could imagine to call something like withoutCache() here, but this is not how it works right now, if I read https://docs.saloon.dev/installable-plugins/caching-responses correctly.

    Saloon::fake([
        GetSuggestionsRequest::class => MockResponse::fixture("suggestions/$this->product"),
    ]);

Is there anything you can imagine to solve this?

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