@@ -4,7 +4,7 @@ import { setupTest } from "@/test/mod";
44
55describe ( "Actor Vars" , ( ) => {
66 describe ( "Static vars" , ( ) => {
7- test ( "should provide access to static vars" , async ( ) => {
7+ test ( "should provide access to static vars" , async ( c ) => {
88 // Define actor with static vars
99 const varActor = actor ( {
1010 state : { value : 0 } ,
@@ -24,7 +24,7 @@ describe("Actor Vars", () => {
2424 actors : { varActor } ,
2525 } ) ;
2626
27- const { client } = await setupTest < typeof app > ( app ) ;
27+ const { client } = await setupTest < typeof app > ( c , app ) ;
2828 const instance = await client . varActor . get ( ) ;
2929
3030 // Test accessing vars
@@ -38,7 +38,7 @@ describe("Actor Vars", () => {
3838 } ) ;
3939
4040 describe ( "Deep cloning of static vars" , ( ) => {
41- test ( "should deep clone static vars between actor instances" , async ( ) => {
41+ test ( "should deep clone static vars between actor instances" , async ( c ) => {
4242 // Define actor with nested object in vars
4343 const nestedVarActor = actor ( {
4444 state : { value : 0 } ,
@@ -69,7 +69,7 @@ describe("Actor Vars", () => {
6969 actors : { nestedVarActor } ,
7070 } ) ;
7171
72- const { client } = await setupTest < typeof app > ( app ) ;
72+ const { client } = await setupTest < typeof app > ( c , app ) ;
7373
7474 // Create two separate instances
7575 const instance1 = await client . nestedVarActor . get ( {
@@ -94,7 +94,7 @@ describe("Actor Vars", () => {
9494 } ) ;
9595
9696 describe ( "createVars" , ( ) => {
97- test ( "should support dynamic vars creation" , async ( ) => {
97+ test ( "should support dynamic vars creation" , async ( c ) => {
9898 // Define actor with createVars function
9999 const dynamicVarActor = actor ( {
100100 state : { value : 0 } ,
@@ -116,7 +116,7 @@ describe("Actor Vars", () => {
116116 actors : { dynamicVarActor } ,
117117 } ) ;
118118
119- const { client } = await setupTest < typeof app > ( app ) ;
119+ const { client } = await setupTest < typeof app > ( c , app ) ;
120120
121121 // Create an instance
122122 const instance = await client . dynamicVarActor . get ( ) ;
@@ -130,7 +130,7 @@ describe("Actor Vars", () => {
130130 expect ( vars . computed ) . toMatch ( / ^ A c t o r - \d + $ / ) ;
131131 } ) ;
132132
133- test ( "should create different vars for different instances" , async ( ) => {
133+ test ( "should create different vars for different instances" , async ( c ) => {
134134 // Define actor with createVars function that generates unique values
135135 const uniqueVarActor = actor ( {
136136 state : { value : 0 } ,
@@ -151,7 +151,7 @@ describe("Actor Vars", () => {
151151 actors : { uniqueVarActor } ,
152152 } ) ;
153153
154- const { client } = await setupTest < typeof app > ( app ) ;
154+ const { client } = await setupTest < typeof app > ( c , app ) ;
155155
156156 // Create two separate instances
157157 const instance1 = await client . uniqueVarActor . get ( {
@@ -171,7 +171,7 @@ describe("Actor Vars", () => {
171171 } ) ;
172172
173173 describe ( "Driver Context" , ( ) => {
174- test ( "should provide access to driver context" , async ( ) => {
174+ test ( "should provide access to driver context" , async ( c ) => {
175175 // Reset timers to avoid test timeouts
176176 vi . useRealTimers ( ) ;
177177
@@ -201,7 +201,7 @@ describe("Actor Vars", () => {
201201 } ) ;
202202
203203 // Set up the test
204- const { client } = await setupTest < typeof app > ( app ) ;
204+ const { client } = await setupTest < typeof app > ( c , app ) ;
205205
206206 // Create an instance
207207 const instance = await client . driverCtxActor . get ( ) ;
0 commit comments