@@ -8,7 +8,7 @@ import { createSessionStoreManagerComponent, SessionStore } from '../../..'
88type TestSession = { readonly value : number }
99
1010test ( 'displays the loading screen' , async ( ) => {
11- const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) )
11+ const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) , { report : jest . fn ( ) } )
1212 const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
1313
1414 const renderer = TestRenderer . create (
@@ -45,7 +45,7 @@ test('displays the loading screen', async () => {
4545} )
4646
4747test ( 'shows the ready screen once given time to load' , async ( ) => {
48- const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) )
48+ const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) , { report : jest . fn ( ) } )
4949 const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
5050
5151 const renderer = TestRenderer . create (
@@ -84,7 +84,7 @@ test('shows the ready screen once given time to load', async () => {
8484} )
8585
8686test ( 're-renders when the session is changed externally once' , async ( ) => {
87- const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) )
87+ const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) , { report : jest . fn ( ) } )
8888 const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
8989
9090 const renderer = TestRenderer . create (
@@ -124,7 +124,7 @@ test('re-renders when the session is changed externally once', async () => {
124124} )
125125
126126test ( 're-renders when the session is changed externally twice' , async ( ) => {
127- const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) )
127+ const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) , { report : jest . fn ( ) } )
128128 const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
129129
130130 const renderer = TestRenderer . create (
@@ -165,7 +165,7 @@ test('re-renders when the session is changed externally twice', async () => {
165165} )
166166
167167test ( 're-renders when the session is changed internally once' , async ( ) => {
168- const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) )
168+ const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) , { report : jest . fn ( ) } )
169169 const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
170170
171171 const renderer = TestRenderer . create (
@@ -207,7 +207,7 @@ test('re-renders when the session is changed internally once', async () => {
207207} )
208208
209209test ( 're-renders when the session is changed internally twice' , async ( ) => {
210- const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) )
210+ const sessionStore = new SessionStore < TestSession > ( { value : 5 } , randomUUID ( ) . toLowerCase ( ) , { report : jest . fn ( ) } )
211211 const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
212212
213213 const renderer = TestRenderer . create (
0 commit comments