aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/support/cypress-component.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cypress/support/cypress-component.d.ts')
-rw-r--r--cypress/support/cypress-component.d.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/cypress/support/cypress-component.d.ts b/cypress/support/cypress-component.d.ts
new file mode 100644
index 00000000000..735db871e35
--- /dev/null
+++ b/cypress/support/cypress-component.d.ts
@@ -0,0 +1,17 @@
+/*!
+ * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+import type { mount } from '@cypress/vue2'
+
+declare global {
+ // eslint-disable-next-line @typescript-eslint/no-namespace
+ namespace Cypress {
+ interface Chainable {
+ mount: typeof mount
+ mockInitialState: (app: string, key: string, value: unknown) => Cypress.Chainable<void>
+ unmockInitialState: (app?: string, key?: string) => Cypress.Chainable<void>
+ }
+ }
+}