Skip to content

Commit 8fd7210

Browse files
authored
Merge pull request #49299 from nextcloud/tests/fix-jest-leftover
test: Fix test mocks for nextcloud-dialogs
2 parents 1436075 + c3f38a9 commit 8fd7210

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

__mocks__/@nextcloud/dialogs.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
import { jest } from '@jest/globals'
6+
import { vi } from 'vitest'
77

8-
export const showMessage = jest.fn()
9-
export const showSuccess = jest.fn()
10-
export const showWarning = jest.fn()
11-
export const showInfo = jest.fn()
12-
export const showError = jest.fn()
13-
export const showUndo = jest.fn()
8+
export const showMessage = vi.fn()
9+
export const showSuccess = vi.fn()
10+
export const showWarning = vi.fn()
11+
export const showInfo = vi.fn()
12+
export const showError = vi.fn()
13+
export const showUndo = vi.fn()

0 commit comments

Comments
 (0)