mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-22 04:21:40 +08:00
refactor!: next generation AFFiNE code structure (#1176)
This commit is contained in:
+15
-1
@@ -1,8 +1,22 @@
|
||||
import path from 'node:path';
|
||||
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'next/router': 'next-router-mock',
|
||||
'next/config': path.resolve('./scripts/vitest/next-config-mock.ts'),
|
||||
},
|
||||
},
|
||||
test: {
|
||||
include: ['packages/**/*.spec.ts'],
|
||||
include: [
|
||||
'packages/**/*.spec.ts',
|
||||
'apps/rem/**/*.spec.ts',
|
||||
'apps/rem/**/*.spec.tsx',
|
||||
],
|
||||
testTimeout: 5000,
|
||||
coverage: {
|
||||
provider: 'istanbul', // or 'c8'
|
||||
|
||||
Reference in New Issue
Block a user