Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: AGPL-3.0-or-later
  4. */
  5. /* eslint-disable */
  6. import { mount } from '@cypress/vue2'
  7. type MountParams = Parameters<typeof mount>;
  8. type OptionsParam = MountParams[1];
  9. declare global {
  10. namespace Cypress {
  11. interface Chainable {
  12. mount: typeof mount;
  13. /**
  14. * Mock an initial state for component testing
  15. *
  16. * @param app App name of the initial state
  17. * @param key Key of the initial state
  18. * @param value The mocked value of the initial state
  19. */
  20. mockInitialState: (app: string, key: string, value: any) => void
  21. /**
  22. * Unmock all initial states or one defined by app and key
  23. *
  24. * @param app app name of the inital state
  25. * @param key the key of the the initial state
  26. */
  27. unmockInitialState: (app?: string, key?: string) => void
  28. }
  29. }
  30. }