mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-22 18:42:48 +03:00
29 lines
645 B
TypeScript
29 lines
645 B
TypeScript
import path from 'node:path';
|
|
|
|
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
assetsInclude: ['**/*.md'],
|
|
resolve: {
|
|
alias: {
|
|
'next/router': 'next-router-mock',
|
|
'next/config': path.resolve('./scripts/vitest/next-config-mock.ts'),
|
|
},
|
|
},
|
|
test: {
|
|
include: [
|
|
'packages/**/*.spec.ts',
|
|
'apps/web/**/*.spec.ts',
|
|
'apps/web/**/*.spec.tsx',
|
|
],
|
|
testTimeout: 5000,
|
|
coverage: {
|
|
provider: 'istanbul', // or 'c8'
|
|
reporter: ['lcov'],
|
|
reportsDirectory: '.coverage/store',
|
|
},
|
|
},
|
|
});
|