mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
27 lines
665 B
TypeScript
27 lines
665 B
TypeScript
/**
|
|
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: CC0-1.0
|
|
*/
|
|
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
projects: [
|
|
'build/frontend*',
|
|
],
|
|
onUnhandledError(error) {
|
|
// TODO: remove when this is fixed: https://github.com/nextcloud-libraries/nextcloud-vue/issues/8090
|
|
if (error.message.includes('`fallbackFocus` was specified but was not a node, or did not return a node')) {
|
|
return false
|
|
}
|
|
},
|
|
},
|
|
server: {
|
|
watch: {
|
|
ignored(path: string) {
|
|
return !/(\/|build\/frontend[^/]*\/)(apps|core)\/(src|tests)\//.test(path)
|
|
},
|
|
},
|
|
},
|
|
})
|