Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/backend/backend_python/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -893,6 +893,7 @@
"Images"
],
"summary": "Toggle Favourite",
"description": "Toggle the favorite status of an image.",
Comment thread
coderabbitai[bot] marked this conversation as resolved.
"operationId": "toggle_favourite_images_toggle_favourite_post",
"requestBody": {
"content": {
Expand Down
12 changes: 11 additions & 1 deletion frontend/jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,17 @@ Object.defineProperty(window, 'matchMedia', {

// Mock the module imports
jest.mock('@tauri-apps/api/core', () => ({
invoke: jest.fn().mockResolvedValue(null),
invoke: jest.fn().mockImplementation((cmd: string) => {
switch (cmd) {
case 'is_autostart_enabled':
return Promise.resolve(false);
case 'enable_autostart':
case 'disable_autostart':
return Promise.resolve(undefined);
default:
return Promise.resolve(null);
}
}),
}));

jest.mock('@tauri-apps/api/app', () => ({
Expand Down
36 changes: 10 additions & 26 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 50 additions & 6 deletions frontend/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading