mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
29 lines
686 B
TypeScript
29 lines
686 B
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
import {defineConfig} from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
resolve: {tsconfigPaths: true},
|
|
oxc: {
|
|
jsx: {runtime: 'automatic', importSource: 'react'},
|
|
},
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
testTimeout: 30_000,
|
|
hookTimeout: 30_000,
|
|
setupFiles: ['./vitest.setup.ts'],
|
|
env: {
|
|
PUBLIC_BUILD_VERSION: process.env.PUBLIC_BUILD_VERSION ?? 'dev',
|
|
PUBLIC_RELEASE_CHANNEL: process.env.PUBLIC_RELEASE_CHANNEL ?? 'development',
|
|
},
|
|
include: ['src/**/*.{test,spec}.{ts,tsx}'],
|
|
exclude: ['node_modules', 'dist'],
|
|
server: {
|
|
deps: {
|
|
inline: [/livekit-client/, /@livekit\//],
|
|
},
|
|
},
|
|
},
|
|
});
|