fix: resolve TypeScript linting errors preventing CI pass
- Removed invalid workflow property from createTestTemplate function - Fixed TemplateWorkflow interface usage to use nodes directly - Removed unsupported watchExclude property from vitest config - Updated seedTestTemplates to properly handle template data structure All TypeScript errors are now resolved. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -221,7 +221,7 @@ export async function seedTestTemplates(
|
|||||||
description: template.description,
|
description: template.description,
|
||||||
views: template.totalViews,
|
views: template.totalViews,
|
||||||
createdAt: template.createdAt,
|
createdAt: template.createdAt,
|
||||||
workflow: template.workflow || {
|
workflow: {
|
||||||
nodes: template.nodes?.map((n, i) => ({
|
nodes: template.nodes?.map((n, i) => ({
|
||||||
id: `node_${i}`,
|
id: `node_${i}`,
|
||||||
name: n.name,
|
name: n.name,
|
||||||
@@ -272,13 +272,7 @@ export function createTestTemplate(overrides: Partial<TemplateWorkflow> = {}): T
|
|||||||
id,
|
id,
|
||||||
name: `Test Template ${id}`,
|
name: `Test Template ${id}`,
|
||||||
description: 'A test template',
|
description: 'A test template',
|
||||||
workflow: overrides.workflow || {
|
|
||||||
nodes: [],
|
|
||||||
connections: {},
|
|
||||||
settings: {}
|
|
||||||
},
|
|
||||||
nodes: overrides.nodes || [],
|
nodes: overrides.nodes || [],
|
||||||
categories: [],
|
|
||||||
user: overrides.user || {
|
user: overrides.user || {
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'Test User',
|
name: 'Test User',
|
||||||
|
|||||||
@@ -53,9 +53,7 @@ export default defineConfig({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Test isolation
|
// Test isolation
|
||||||
isolate: true,
|
isolate: true
|
||||||
// File watch settings
|
|
||||||
watchExclude: ['**/node_modules/**', '**/dist/**', '**/.git/**']
|
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
|||||||
Reference in New Issue
Block a user