11import { describe , expect , it } from 'vitest' ;
22import { getFlowValidation } from '../src/validation/getFlowValidation' ;
33import { Flow } from "@code0-tech/sagittarius-graphql-types" ; // Pfad ggf. anpassen
4+ // @ts -ignore
45import { DATA_TYPES , FUNCTION_SIGNATURES } from "./data" ;
56
67describe ( 'getFlowValidation - Integrationstest' , ( ) => {
@@ -69,7 +70,6 @@ describe('getFlowValidation - Integrationstest', () => {
6970 expect ( result . isValid ) . toBe ( true ) ;
7071 expect ( result . diagnostics ) . toHaveLength ( 0 ) ;
7172 result . diagnostics . forEach ( ( error ) => {
72- expect ( error . nodeId ) . toBeDefined ( )
7373 expect ( error . parameterIndex ) . toBeDefined ( )
7474 } )
7575 } ) ;
@@ -142,7 +142,6 @@ describe('getFlowValidation - Integrationstest', () => {
142142
143143 expect ( result . isValid ) . toBe ( false ) ;
144144 result . diagnostics . forEach ( ( error ) => {
145- expect ( error . nodeId ) . toBeDefined ( )
146145 expect ( error . parameterIndex ) . toBeDefined ( )
147146 } )
148147 } ) ;
@@ -192,7 +191,6 @@ describe('getFlowValidation - Integrationstest', () => {
192191 expect ( result . isValid ) . toBe ( true ) ;
193192 expect ( result . diagnostics ) . toHaveLength ( 0 ) ;
194193 result . diagnostics . forEach ( ( error ) => {
195- expect ( error . nodeId ) . toBeDefined ( )
196194 expect ( error . parameterIndex ) . toBeDefined ( )
197195 } )
198196 } ) ;
@@ -249,7 +247,6 @@ describe('getFlowValidation - Integrationstest', () => {
249247 expect ( result . isValid ) . toBe ( true ) ;
250248 expect ( result . diagnostics ) . toHaveLength ( 0 ) ;
251249 result . diagnostics . forEach ( ( error ) => {
252- expect ( error . nodeId ) . toBeDefined ( )
253250 expect ( error . parameterIndex ) . toBeDefined ( )
254251 } )
255252 } ) ;
@@ -261,8 +258,7 @@ describe('getFlowValidation - Integrationstest', () => {
261258 "id" : "gid://sagittarius/Flow/1" ,
262259 "createdAt" : "2026-03-17T14:02:31Z" ,
263260 "name" : "Test" ,
264- "inputType" : "REST_ADAPTER_INPUT" ,
265- "returnType" : "HTTP_RESPONSE" ,
261+ "signature" : "(httpURL: HTTP_URL, httpMethod: HTTP_METHOD): REST_ADAPTER_INPUT<{}>" ,
266262 "nodes" : {
267263 "__typename" : "NodeFunctionConnection" ,
268264 "nodes" : [
@@ -364,7 +360,6 @@ describe('getFlowValidation - Integrationstest', () => {
364360
365361 expect ( result . isValid ) . toBe ( false ) ;
366362 result . diagnostics . forEach ( ( error ) => {
367- expect ( error . nodeId ) . toBeDefined ( )
368363 expect ( error . parameterIndex ) . toBeDefined ( )
369364 } )
370365 } ) ;
@@ -376,8 +371,7 @@ describe('getFlowValidation - Integrationstest', () => {
376371 "id" : "gid://sagittarius/Flow/1" ,
377372 "createdAt" : "2026-03-17T14:02:31Z" ,
378373 "name" : "Test" ,
379- "inputType" : "REST_ADAPTER_INPUT" ,
380- "returnType" : "HTTP_RESPONSE" ,
374+ "signature" : "(httpURL: HTTP_URL, httpMethod: HTTP_METHOD): REST_ADAPTER_INPUT<{}>" ,
381375 "nodes" : {
382376 "__typename" : "NodeFunctionConnection" ,
383377 "nodes" : [
@@ -539,8 +533,6 @@ describe('getFlowValidation - Integrationstest', () => {
539533
540534 expect ( result . isValid ) . toBe ( false ) ;
541535 result . diagnostics . forEach ( ( error ) => {
542-
543- expect ( error . nodeId ) . toBeDefined ( )
544536 expect ( error . parameterIndex ) . toBeDefined ( )
545537 } )
546538 } ) ;
0 commit comments