diff --git a/apps/studio/vitest.config.ts b/apps/studio/vitest.config.ts index 83e01c00e51..1f453470208 100644 --- a/apps/studio/vitest.config.ts +++ b/apps/studio/vitest.config.ts @@ -1,8 +1,8 @@ -import react from '@vitejs/plugin-react' -import path, { resolve } from 'path' -import { fileURLToPath } from 'url' -import tsconfigPaths from 'vite-tsconfig-paths' +import { resolve } from 'node:path' +import { fileURLToPath } from 'node:url' import { defineConfig } from 'vitest/config' +import react from '@vitejs/plugin-react' +import tsconfigPaths from 'vite-tsconfig-paths' // Some tools like Vitest VSCode extensions, have trouble with resolving relative paths, // as they use the directory of the test file as `cwd`, which makes them believe that @@ -18,7 +18,7 @@ export default defineConfig({ ], resolve: { alias: { - '@ui': path.resolve(__dirname, './../../packages/ui/src'), + '@ui': resolve(__dirname, './../../packages/ui/src'), }, }, test: {