mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-04 00:28:33 +00:00
fix: vitest.config.ts error (#1615)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import path from 'node:path';
|
||||
import { resolve } from 'node:path';
|
||||
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { defineConfig } from 'vitest/config';
|
||||
@@ -9,7 +9,7 @@ export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'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: {
|
||||
|
||||
Reference in New Issue
Block a user