/** * Vitest config: inline the npm-published `@deepseek-ai/*` packages whose * BUILT lib bundles css side-effect imports. Installed from the npm registry * these packages live under `node_modules/.pnpm` and are externalized by * vitest — Node then chokes on the `.css` import. Inlining routes them * through Vite's transform, which stubs css imports (the default `css: false`). */ import { defineConfig } from 'vitest/config' export default defineConfig({ test: { server: { deps: { inline: [/@deepseek-ai\/dsh-client-ui-primitives/], }, }, exclude: [ 'tests/e2e/**', '**/.worktrees/**', '**/node_modules/**', '**/dist/**', '**/cypress/**', '**/.{idea,git,cache,output,temp}/**', '**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*', ], }, })