@@ -327,15 +327,15 @@ describe('Watch Tests', { sequential: true }, () => {
327327
328328 it ( 'should stream watch results' , async ( ) => {
329329 const watch = powersync . incrementalWatch ( {
330- mode : 'comparison' ,
331- watchOptions : {
330+ watch : {
332331 query : {
333332 compile : ( ) => ( {
334333 sql : 'SELECT * FROM assets' ,
335334 parameters : [ ]
336335 } ) ,
337336 execute : ( { sql, parameters } ) => powersync . getAll ( sql , parameters )
338- }
337+ } ,
338+ placeholderData : [ ]
339339 }
340340 } ) ;
341341
@@ -369,8 +369,16 @@ describe('Watch Tests', { sequential: true }, () => {
369369
370370 it ( 'should only report updates for relevant changes' , async ( ) => {
371371 const watch = powersync . incrementalWatch ( {
372- sql : 'SELECT * FROM assets where make = ?' ,
373- parameters : [ 'test' ]
372+ watch : {
373+ query : {
374+ compile : ( ) => ( {
375+ sql : 'SELECT * FROM assets where make = ?' ,
376+ parameters : [ 'test' ]
377+ } ) ,
378+ execute : ( { sql, parameters } ) => powersync . getAll ( sql , parameters )
379+ } ,
380+ placeholderData : [ ]
381+ }
374382 } ) ;
375383
376384 let notificationCount = 0 ;
@@ -398,9 +406,17 @@ describe('Watch Tests', { sequential: true }, () => {
398406
399407 it ( 'should not report fetching status' , async ( ) => {
400408 const watch = powersync . incrementalWatch ( {
401- sql : 'SELECT * FROM assets where make = ?' ,
402- parameters : [ 'test' ] ,
403- reportFetching : false
409+ watch : {
410+ query : {
411+ compile : ( ) => ( {
412+ sql : 'SELECT * FROM assets where make = ?' ,
413+ parameters : [ 'test' ]
414+ } ) ,
415+ execute : ( { sql, parameters } ) => powersync . getAll ( sql , parameters )
416+ } ,
417+ placeholderData : [ ] ,
418+ reportFetching : false
419+ }
404420 } ) ;
405421
406422 expect ( watch . state . isFetching ) . false ;
0 commit comments