7 Commits

Author SHA1 Message Date
c98ece29d9 Merge pull request #78 from lordmathis/dependabot/npm_and_yarn/app/minor-and-patch-14e79d6468
Bump the minor-and-patch group in /app with 2 updates
2025-11-10 20:01:12 +01:00
dependabot[bot]
406483c83e Bump the minor-and-patch group in /app with 2 updates
Bumps the minor-and-patch group in /app with 2 updates: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) and [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser).


Updates `@typescript-eslint/eslint-plugin` from 8.46.3 to 8.46.4
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.4/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.46.3 to 8.46.4
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.4/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.46.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.46.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-10 18:50:45 +00:00
b285436081 Merge pull request #83 from lordmathis/chore/update-deps
Update dependencies
2025-11-10 19:32:08 +01:00
aeeab0e37a Fix import statement in vitest.config.ts 2025-11-10 19:27:47 +01:00
414000d72f Fix tests after deps update 2025-11-10 19:18:55 +01:00
ffa10a8411 Bump @mantine packages to version 8.3.7 in package.json and package-lock.json 2025-11-10 18:45:02 +01:00
73a72b64be Update vitest and coverage-v8 deps 2025-11-10 18:41:32 +01:00
5 changed files with 432 additions and 806 deletions

1186
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",
@@ -62,10 +62,10 @@
"@types/node": "^22.14.0",
"@types/react": "^18.3.20",
"@types/react-dom": "^18.3.6",
"@typescript-eslint/eslint-plugin": "^8.46.3",
"@typescript-eslint/eslint-plugin": "^8.46.4",
"@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';