vitest.config.ts 690 B

1234567891011121314151617181920212223242526
  1. /**
  2. * SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-License-Identifier: CC0-1.0
  4. */
  5. import { defineConfig } from 'vitest/config'
  6. import vue from '@vitejs/plugin-vue2'
  7. export default defineConfig({
  8. plugins: [vue()],
  9. test: {
  10. include: ['{apps,core}/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
  11. environment: 'jsdom',
  12. coverage: {
  13. include: ['apps/*/src/**', 'core/src/**'],
  14. exclude: ['**.spec.*', '**.test.*', '**.cy.*', 'core/src/tests/**'],
  15. provider: 'v8',
  16. reporter: ['lcov', 'text'],
  17. },
  18. setupFiles: ['__tests__/mock-window.js', '__tests__/setup-testing-library.js'],
  19. server: {
  20. deps: {
  21. inline: [/@nextcloud\//],
  22. },
  23. },
  24. },
  25. })