fix: resolve type-check and unit test failures for CI
- vite.renderer.config: remove deprecated babel option from @vitejs/plugin-react v6 - server/main.ts: cast fastify instance to fix version mismatch TS error - proxy-tool-streaming.test: pass 3 args to ProxyService constructor (added TokenUsageService mock) - input.test: update expected classes (rounded-lg, bg-muted/50) - StatCard.test: update selectors and accent classes to match component (rounded-lg, /8 opacity, bg-white/[0.04]) - paths.test: relax executable path assertion for CI environments - cloud-repo.test: add fs mock to prevent EACCES on /mock/db - cloudHandler-sync.test: add traffic-logger mock to prevent EACCES on /mock/
This commit is contained in:
1 parent
de866a74bf
commit
6e568dd866
8 files changed
+166
-139
No files matched your search
@@ -68,6 +68,20 @@ vi.mock('../../../utils/paths', () => ({
|
||||
getCloudAccountsDbPath: vi.fn(() => '/mock/db/path.sqlite'),
|
||||
}));
|
||||
|
||||
vi.mock('fs', async () => {
|
||||
const actual = await vi.importActual<typeof import('fs')>('fs');
|
||||
return {
|
||||
...actual,
|
||||
default: {
|
||||
...actual,
|
||||
existsSync: vi.fn(() => true),
|
||||
mkdirSync: vi.fn(),
|
||||
},
|
||||
existsSync: vi.fn(() => true),
|
||||
mkdirSync: vi.fn(),
|
||||
};
|
||||
});
|
||||
|
||||
vi.mock('../../../utils/logger', () => ({
|
||||
logger: {
|
||||
info: vi.fn(),
|
||||
|
||||
Reference in new issue
Block a user