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:
@@ -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),
|
||||
}),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user