Merge pull request #83 from lordmathis/chore/update-deps

Update dependencies
This commit is contained in:
2025-11-10 19:32:08 +01:00
committed by GitHub
5 changed files with 366 additions and 740 deletions

1056
app/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -34,10 +34,10 @@
"@codemirror/state": "^6.5.2",
"@codemirror/theme-one-dark": "^6.1.3",
"@codemirror/view": "^6.38.6",
"@mantine/core": "^7.13.2",
"@mantine/hooks": "^7.13.2",
"@mantine/modals": "^7.13.2",
"@mantine/notifications": "^7.13.2",
"@mantine/core": "^8.3.7",
"@mantine/hooks": "^8.3.7",
"@mantine/modals": "^8.3.7",
"@mantine/notifications": "^8.3.7",
"@react-hook/resize-observer": "^2.0.2",
"@tabler/icons-react": "^3.35.0",
"codemirror": "^6.0.2",
@@ -65,7 +65,7 @@
"@typescript-eslint/eslint-plugin": "^8.46.3",
"@typescript-eslint/parser": "^8.32.1",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^3.1.4",
"@vitest/coverage-v8": "^4.0.8",
"eslint": "^9.39.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
@@ -77,7 +77,7 @@
"typescript": "^5.9.3",
"vite": "^6.4.1",
"vite-plugin-compression2": "^2.3.1",
"vitest": "^3.1.4"
"vitest": "^4.0.8"
},
"browserslist": {
"production": [

View File

@@ -34,6 +34,9 @@ describe('useFileNavigation', () => {
id: 1,
name: 'test-workspace',
};
// Default mock implementations
mockLastOpenedFile.loadLastOpenedFile.mockResolvedValue(null);
mockLastOpenedFile.saveLastOpenedFile.mockResolvedValue(undefined);
});
afterEach(() => {

View File

@@ -1,5 +1,26 @@
import '@testing-library/jest-dom';
import { vi } from 'vitest';
import { vi, beforeAll, afterAll } from 'vitest';
// Suppress console errors during tests
const originalConsoleError = console.error;
beforeAll(() => {
console.error = (...args: any[]) => {
// Suppress specific expected errors during tests
const errorString = args.join(' ');
if (
errorString.includes('Failed to initialize auth') ||
errorString.includes('Failed to save last opened file') ||
errorString.includes('Failed to load last opened file')
) {
return;
}
originalConsoleError(...args);
};
});
afterAll(() => {
console.error = originalConsoleError;
});
// Mock window.API_BASE_URL
Object.defineProperty(window, 'API_BASE_URL', {
@@ -23,8 +44,8 @@ Object.defineProperty(window, 'matchMedia', {
});
// Mock ResizeObserver - sometimes needed for Mantine components
global.ResizeObserver = vi.fn().mockImplementation(() => ({
observe: vi.fn(),
unobserve: vi.fn(),
disconnect: vi.fn(),
}));
global.ResizeObserver = class ResizeObserver {
observe = vi.fn();
unobserve = vi.fn();
disconnect = vi.fn();
};

View File

@@ -1,5 +1,5 @@
/// <reference types="vitest" />
import { defineConfig } from 'vite';
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import path from 'path';