Configure cache options for mock-apollo-client

What does this MR do?

In some instances [1], we need to be able to configure the cache option when creating a mocked apollo client. This MR modifies the mock-apollo-client initializer helper to take in an additional argument cacheOptions.

[1] !56730 (comment 530412864)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by euko

Merge request reports

Loading