mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 08:21:39 -06:00
d4bc62f8a9
* fix(metadata): write finalized metadata back to the imported file Finalizing a Book Dock file only moved the bytes, so a library with file writes enabled kept the metadata the file was uploaded with rather than the metadata the dock settled on. Schedule a write-back for every book a finalize produces once all of them have their metadata, attributed to the uploader. Fixes #1385 * fix(metadata): schedule dock file writes after cleanup Prevent a failed Book Dock cleanup from leaving a pending file write. Keep the integration assertion synchronized with the debounced writer and restore the missing directory stability mock for end-to-end coverage. --------- Co-authored-by: neon <18559658+neonsolstice@users.noreply.github.com>
7 lines
219 B
TypeScript
7 lines
219 B
TypeScript
import { vi } from 'vitest';
|
|
|
|
vi.mock('../src/common/utils/fs-stability.utils', () => ({
|
|
waitForStability: vi.fn().mockResolvedValue(undefined),
|
|
waitForDirectoryStability: vi.fn().mockResolvedValue(undefined),
|
|
}));
|