fix: resolve all TypeScript and lint errors in integration tests
- Fixed InMemoryTransport destructuring (object → array) - Updated all callTool calls to new object syntax - Changed getServerInfo() to getServerVersion() - Added type assertions for response objects - Fixed import paths and missing imports - Corrected template and performance test type issues - All 56 TypeScript errors resolved Both 'npm run lint' and 'npm run typecheck' now pass successfully
This commit is contained in:
@@ -165,7 +165,7 @@ export const n8nApiMock = {
|
||||
*/
|
||||
mockWorkflowCreate: (response?: any) => {
|
||||
return http.post('*/api/v1/workflows', async ({ request }) => {
|
||||
const body = await request.json();
|
||||
const body = await request.json() as Record<string, any>;
|
||||
return HttpResponse.json({
|
||||
data: {
|
||||
id: 'test-workflow-id',
|
||||
|
||||
Reference in New Issue
Block a user