test: adjust test code for updated @nextcloud/vue version

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2025-07-14 22:22:57 +02:00
parent 3e365aaa51
commit ec263a328a
No known key found for this signature in database
GPG key ID: 45FAE7268762B400
3 changed files with 6 additions and 1 deletions

View file

@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import { dirname } from 'path'
import { useHotKey } from '@nextcloud/vue/dist/Composables/useHotKey.js'
import { useHotKey } from '@nextcloud/vue/composables/useHotKey'
import { action as deleteAction } from '../actions/deleteAction.ts'
import { action as favoriteAction } from '../actions/favoriteAction.ts'

View file

@ -18,6 +18,7 @@ export const registerHotkeys = function() {
useHotKey('t', () => executeAction(manageTagAction), {
stop: true,
prevent: true,
window,
})
logger.debug('Hotkeys registered')

View file

@ -27,6 +27,10 @@ export default defineConfig({
plugins: [vue()],
test: {
include: ['{apps,core}/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
env: {
LANG: 'en-US',
TZ: 'UTC',
},
environment: 'jsdom',
environmentOptions: {
jsdom: {