mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
31 lines
833 B
TypeScript
31 lines
833 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: 2025 The HedgeDoc developers (see AUTHORS file)
|
|
*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { resolve } from 'path'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: 'jsdom',
|
|
exclude: ['cypress/**/*'],
|
|
alias: [
|
|
{
|
|
find: /^.+\\.(svg)$/,
|
|
replacement: resolve(__dirname, './src/test-utils/svg-mock.tsx')
|
|
},
|
|
{
|
|
find: /^react-bootstrap-icons$/,
|
|
replacement: resolve(__dirname, './src/test-utils/bootstrap-icon-mocks.tsx')
|
|
},
|
|
{
|
|
find: RegExp('^react-bootstrap-icons/dist/icons/.*$'),
|
|
replacement: resolve(__dirname, './src/test-utils/svg-mock.tsx')
|
|
}
|
|
],
|
|
setupFiles: './vitest.setup.ts'
|
|
},
|
|
plugins: [react()]
|
|
})
|