fix: resolve TypeScript compilation errors in test files
- Add explicit type annotations for properties arrays in config validator tests - Update ValidationResult mock to include required visibleProperties and hiddenProperties - Fix all TypeScript compilation errors found in CI/CD pipeline All tests passing with 85.36% coverage. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
BIN
data/nodes.db
BIN
data/nodes.db
Binary file not shown.
@@ -132,7 +132,7 @@ describe('ConfigValidator - Basic Validation', () => {
|
|||||||
it('should handle unknown node types gracefully', () => {
|
it('should handle unknown node types gracefully', () => {
|
||||||
const nodeType = 'nodes-base.unknown';
|
const nodeType = 'nodes-base.unknown';
|
||||||
const config = { field: 'value' };
|
const config = { field: 'value' };
|
||||||
const properties = [];
|
const properties: any[] = [];
|
||||||
|
|
||||||
const result = ConfigValidator.validate(nodeType, config, properties);
|
const result = ConfigValidator.validate(nodeType, config, properties);
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ describe('ConfigValidator - Edge Cases', () => {
|
|||||||
it('should handle null config gracefully', () => {
|
it('should handle null config gracefully', () => {
|
||||||
const nodeType = 'nodes-base.test';
|
const nodeType = 'nodes-base.test';
|
||||||
const config = null as any;
|
const config = null as any;
|
||||||
const properties = [];
|
const properties: any[] = [];
|
||||||
|
|
||||||
expect(() => {
|
expect(() => {
|
||||||
ConfigValidator.validate(nodeType, config, properties);
|
ConfigValidator.validate(nodeType, config, properties);
|
||||||
@@ -24,7 +24,7 @@ describe('ConfigValidator - Edge Cases', () => {
|
|||||||
it('should handle undefined config gracefully', () => {
|
it('should handle undefined config gracefully', () => {
|
||||||
const nodeType = 'nodes-base.test';
|
const nodeType = 'nodes-base.test';
|
||||||
const config = undefined as any;
|
const config = undefined as any;
|
||||||
const properties = [];
|
const properties: any[] = [];
|
||||||
|
|
||||||
expect(() => {
|
expect(() => {
|
||||||
ConfigValidator.validate(nodeType, config, properties);
|
ConfigValidator.validate(nodeType, config, properties);
|
||||||
|
|||||||
@@ -24,7 +24,9 @@ vi.mock('@/services/enhanced-config-validator', () => ({
|
|||||||
valid: true,
|
valid: true,
|
||||||
errors: [],
|
errors: [],
|
||||||
warnings: [],
|
warnings: [],
|
||||||
suggestions: []
|
suggestions: [],
|
||||||
|
visibleProperties: [],
|
||||||
|
hiddenProperties: []
|
||||||
}),
|
}),
|
||||||
validateWithMode: vi.fn().mockReturnValue({
|
validateWithMode: vi.fn().mockReturnValue({
|
||||||
valid: true,
|
valid: true,
|
||||||
@@ -88,7 +90,9 @@ describe('WorkflowValidator - Edge Cases', () => {
|
|||||||
valid: true,
|
valid: true,
|
||||||
errors: [],
|
errors: [],
|
||||||
warnings: [],
|
warnings: [],
|
||||||
suggestions: []
|
suggestions: [],
|
||||||
|
visibleProperties: [],
|
||||||
|
hiddenProperties: []
|
||||||
});
|
});
|
||||||
|
|
||||||
// Create validator instance with mocked dependencies
|
// Create validator instance with mocked dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user