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: {