fix: resolve TypeScript and linting errors in test infrastructure

- Add @types/better-sqlite3 dependency
- Remove duplicate database mock file
- Fix property spread order in workflow builder to prevent overwrites
- All 75 tests now pass with no linting errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
czlonkowski
2025-07-28 13:26:00 +02:00
parent 17013d8a25
commit 45b271c860
4 changed files with 13 additions and 150 deletions

View File

@@ -114,13 +114,13 @@ export class WorkflowBuilder {
const nodeName = node.name || `${node.type} ${++this.nodeCounter}`;
const fullNode: INode = {
...node, // Spread first to allow overrides
id: nodeId,
name: nodeName,
type: node.type,
typeVersion: node.typeVersion,
position: node.position || this.getNextPosition(),
parameters: node.parameters || {},
...node,
};
this.workflow.nodes.push(fullNode);