Feat/webworker for incremental render (#51)

* feat: web worker for incremental render

* feat: optimizing incremental render for date archives

* feat: more work on web worker

* fix: blogmark process handled defaulting wrong

---------

Co-authored-by: hugo <hugoms@me.com>
This commit is contained in:
Georg Bauer
2026-03-13 13:27:45 +01:00
committed by GitHub
parent 101036e58e
commit 914af9831d
11 changed files with 1485 additions and 312 deletions

View File

@@ -3236,7 +3236,7 @@ describe('IPC Handlers', () => {
});
describe('blog:applyValidation', () => {
it('should run apply via taskManager.runTask', async () => {
it('should run grouped tasks via taskManager.runTask', async () => {
const mockProject = createMockProject({ id: 'test-project', dataPath: '/mock/data' });
mockProjectEngine.getActiveProject.mockResolvedValue(mockProject);
mockProjectEngine.getDataDir.mockReturnValue('/mock/data/dir');
@@ -3266,9 +3266,12 @@ describe('IPC Handlers', () => {
existingHtmlUrlCount: 1,
});
// Should run preparation as a grouped task
expect(mockTaskManager.runTask).toHaveBeenCalledWith(
expect.objectContaining({
name: 'Apply Site Validation',
name: 'Prepare Validation Apply',
groupId: expect.stringContaining('site-validate-apply-'),
groupName: 'Apply Site Validation',
execute: expect.any(Function),
}),
);