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,
|
||||
views: template.totalViews,
|
||||
createdAt: template.createdAt,
|
||||
workflow: template.workflow || {
|
||||
workflow: {
|
||||
nodes: template.nodes?.map((n, i) => ({
|
||||
id: `node_${i}`,
|
||||
name: n.name,
|
||||
@@ -272,13 +272,7 @@ export function createTestTemplate(overrides: Partial<TemplateWorkflow> = {}): T
|
||||
id,
|
||||
name: `Test Template ${id}`,
|
||||
description: 'A test template',
|
||||
workflow: overrides.workflow || {
|
||||
nodes: [],
|
||||
connections: {},
|
||||
settings: {}
|
||||
},
|
||||
nodes: overrides.nodes || [],
|
||||
categories: [],
|
||||
user: overrides.user || {
|
||||
id: 1,
|
||||
name: 'Test User',
|
||||
|
||||
@@ -53,9 +53,7 @@ export default defineConfig({
|
||||
}
|
||||
},
|
||||
// Test isolation
|
||||
isolate: true,
|
||||
// File watch settings
|
||||
watchExclude: ['**/node_modules/**', '**/dist/**', '**/.git/**']
|
||||
isolate: true
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
||||
Reference in New Issue
Block a user