mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 21:06:22 +08:00
refactor: extract store package (#1109)
This commit is contained in:
+13
-1
@@ -1,8 +1,13 @@
|
||||
import path from 'node:path';
|
||||
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { fileURLToPath } from 'url';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
test: {
|
||||
include: ['packages/**/*.spec.ts'],
|
||||
include: ['packages/**/*.spec.ts', 'packages/**/*.spec.tsx'],
|
||||
testTimeout: 5000,
|
||||
coverage: {
|
||||
provider: 'istanbul', // or 'c8'
|
||||
@@ -10,4 +15,11 @@ export default defineConfig({
|
||||
reportsDirectory: '.coverage/store',
|
||||
},
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@affine/store': path.resolve(
|
||||
fileURLToPath(new URL('packages/store', import.meta.url))
|
||||
),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user