@@ -8,7 +8,7 @@ import { createSessionStoreManagerComponent, SessionStore } from '../../..'
8
8
type TestSession = { readonly value : number }
9
9
10
10
test ( '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 ( ) } )
12
12
const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
13
13
14
14
const renderer = TestRenderer . create (
@@ -45,7 +45,7 @@ test('displays the loading screen', async () => {
45
45
} )
46
46
47
47
test ( '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 ( ) } )
49
49
const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
50
50
51
51
const renderer = TestRenderer . create (
@@ -84,7 +84,7 @@ test('shows the ready screen once given time to load', async () => {
84
84
} )
85
85
86
86
test ( '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 ( ) } )
88
88
const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
89
89
90
90
const renderer = TestRenderer . create (
@@ -124,7 +124,7 @@ test('re-renders when the session is changed externally once', async () => {
124
124
} )
125
125
126
126
test ( '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 ( ) } )
128
128
const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
129
129
130
130
const renderer = TestRenderer . create (
@@ -165,7 +165,7 @@ test('re-renders when the session is changed externally twice', async () => {
165
165
} )
166
166
167
167
test ( '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 ( ) } )
169
169
const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
170
170
171
171
const renderer = TestRenderer . create (
@@ -207,7 +207,7 @@ test('re-renders when the session is changed internally once', async () => {
207
207
} )
208
208
209
209
test ( '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 ( ) } )
211
211
const SessionStoreManager = createSessionStoreManagerComponent ( sessionStore )
212
212
213
213
const renderer = TestRenderer . create (
0 commit comments