mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 06:18:45 +08:00
fix: vitest.config.ts error (#1615)
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
import path from 'node:path';
|
import { resolve } from 'node:path';
|
||||||
|
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
import { defineConfig } from 'vitest/config';
|
import { defineConfig } from 'vitest/config';
|
||||||
@@ -9,7 +9,7 @@ export default defineConfig({
|
|||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'next/router': 'next-router-mock',
|
'next/router': 'next-router-mock',
|
||||||
'next/config': path.resolve('./scripts/vitest/next-config-mock.ts'),
|
'next/config': resolve('./scripts/vitest/next-config-mock.ts'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
|
|||||||
Reference in New Issue
Block a user