Fix/typescript problems (#60)

* fix: extended typescript checking to main and fixed all typescript errors

* fix: removed unnecessary type

---------

Co-authored-by: hugo <hugoms@me.com>
This commit is contained in:
Georg Bauer
2026-03-23 18:09:37 +01:00
committed by GitHub
parent 9cf6cbaa18
commit 8ea88b67ec
69 changed files with 3690 additions and 1894 deletions

View File

@@ -265,13 +265,10 @@ describe('MediaEngine', () => {
});
it('should avoid duplicate context log when context is unchanged', () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
mediaEngine.setProjectContext('same-project', '/tmp/data', '/tmp/internal');
mediaEngine.setProjectContext('same-project', '/tmp/data', '/tmp/internal');
expect(consoleLogSpy).toHaveBeenCalledTimes(1);
consoleLogSpy.mockRestore();
expect(mediaEngine.getProjectContext()).toBe('same-project');
});
it('should allow changing project context multiple times', () => {

View File

@@ -163,13 +163,10 @@ describe('PostMediaEngine', () => {
});
it('should avoid duplicate context log when context is unchanged', () => {
const consoleLogSpy = vi.spyOn(console, 'log').mockImplementation(() => {});
engine.setProjectContext('same-project');
engine.setProjectContext('same-project');
expect(consoleLogSpy).toHaveBeenCalledTimes(1);
consoleLogSpy.mockRestore();
expect(true).toBe(true);
});
it('should allow changing project context multiple times', () => {