mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-09-02 21:04:06 +03:00
23 lines
525 B
TypeScript
23 lines
525 B
TypeScript
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
import path from 'node:path';
|
|
import {fileURLToPath} from 'node:url';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
import {defineConfig} from 'vitest/config';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
tsconfigPaths({
|
|
root: path.resolve(__dirname, '../..'),
|
|
}),
|
|
],
|
|
test: {
|
|
globals: true,
|
|
environment: 'node',
|
|
include: ['**/*.{test,spec}.{ts,tsx}'],
|
|
exclude: ['node_modules', 'dist'],
|
|
},
|
|
});
|