Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: vitest.config.ts error (#1615)

Himself654e7ff3862f34
diff --git a/vitest.config.ts b/vitest.config.ts
index f3d1b84421..3df280f3c3 100644
--- a/vitest.config.ts
+++ b/vitest.config.ts
@@ -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: {