@@ -3,6 +3,7 @@ import {type SanityDocument} from '@sanity/types'
33import  { Subject }  from  'rxjs' 
44import  { describe ,  expect ,  it }  from  'vitest' 
55
6+ import  { sourceFor }  from  '../config/sanityConfig' 
67import  { bindActionByDataset }  from  '../store/createActionBinder' 
78import  { createSanityInstance ,  type  SanityInstance }  from  '../store/createSanityInstance' 
89import  { }  from  '../store/createStateSourceAction' 
@@ -31,6 +32,7 @@ const exampleDoc: SanityDocument = {
3132} 
3233
3334describe ( 'applyDocumentActions' ,  ( )  =>  { 
35+   const  source  =  sourceFor ( { projectId : 'p' ,  dataset : 'd' } ) 
3436  let  state : StoreState < TestState > 
3537  let  instance : SanityInstance 
3638  let  eventsSubject : Subject < DocumentEvent > 
@@ -75,6 +77,7 @@ describe('applyDocumentActions', () => {
7577    const  applyPromise  =  applyDocumentActions ( instance ,  { 
7678      actions : [ action ] , 
7779      transactionId : 'txn-success' , 
80+       source, 
7881    } ) 
7982
8083    const  appliedTx : AppliedTransaction  =  { 
@@ -132,6 +135,7 @@ describe('applyDocumentActions', () => {
132135    const  applyPromise  =  applyDocumentActions ( instance ,  { 
133136      actions : [ action ] , 
134137      transactionId : 'txn-error' , 
138+       source, 
135139    } ) 
136140
137141    const  errorEvent : DocumentEvent  =  { 
@@ -165,6 +169,7 @@ describe('applyDocumentActions', () => {
165169    const  applyPromise  =  applyDocumentActions ( childInstance ,  { 
166170      actions : [ action ] , 
167171      transactionId : 'txn-child-match' , 
172+       source, 
168173    } ) 
169174
170175    // Simulate an applied transaction on the parent's instance 
0 commit comments