@@ -94,7 +94,7 @@ describe("Project Schema", () => {
9494 expect ( ( project . tinybird as unknown as Record < string , unknown > ) . pipes ) . toBeUndefined ( ) ;
9595 } ) ;
9696
97- it ( "creates datasource accessors with ingest/append/replace/delete/truncate methods" , ( ) => {
97+ it ( "creates datasource accessors with ingest/ingestBatch/ append/replace/delete/truncate methods" , ( ) => {
9898 const events = defineDatasource ( "events" , {
9999 schema : { timestamp : t . dateTime ( ) } ,
100100 } ) ;
@@ -105,6 +105,7 @@ describe("Project Schema", () => {
105105
106106 expect ( project . tinybird . events ) . toBeDefined ( ) ;
107107 expect ( typeof project . tinybird . events . ingest ) . toBe ( "function" ) ;
108+ expect ( typeof project . tinybird . events . ingestBatch ) . toBe ( "function" ) ;
108109 expect ( typeof project . tinybird . events . append ) . toBe ( "function" ) ;
109110 expect ( typeof project . tinybird . events . replace ) . toBe ( "function" ) ;
110111 expect ( typeof project . tinybird . events . delete ) . toBe ( "function" ) ;
@@ -316,7 +317,7 @@ describe("Project Schema", () => {
316317 expect ( ( client as unknown as Record < string , unknown > ) . pipes ) . toBeUndefined ( ) ;
317318 } ) ;
318319
319- it ( "creates datasource accessors with ingest/append/replace/delete/truncate methods" , ( ) => {
320+ it ( "creates datasource accessors with ingest/ingestBatch/ append/replace/delete/truncate methods" , ( ) => {
320321 const events = defineDatasource ( "events" , {
321322 schema : { id : t . string ( ) } ,
322323 } ) ;
@@ -328,6 +329,7 @@ describe("Project Schema", () => {
328329
329330 expect ( client . events ) . toBeDefined ( ) ;
330331 expect ( typeof client . events . ingest ) . toBe ( "function" ) ;
332+ expect ( typeof client . events . ingestBatch ) . toBe ( "function" ) ;
331333 expect ( typeof client . events . append ) . toBe ( "function" ) ;
332334 expect ( typeof client . events . replace ) . toBe ( "function" ) ;
333335 expect ( typeof client . events . delete ) . toBe ( "function" ) ;
0 commit comments