Mikolaj
12/07/2023, 9:29 AMawaitItem and awaitState in test framework? I did discover that when I use skipItems or awaitItem in a test followed by expectState {} the state inside of expectState block does not update. Is it desired behavior?Mikolaj Leszczynski
12/11/2023, 5:59 PMawaitItem awaits (and returns) either a side effect or a state
awaitState awaits (and returns) only a state
expectState will both await and allow you to verify the captured state within its block
When you await it is assumed you want to capture and manually assert the state, versus using expectState where you can easily assert a copy of the state - so the state is consumed and you don't see an update in expectStateMikolaj
12/11/2023, 6:00 PMMikolaj
12/11/2023, 6:13 PMskipItems ? why doesen't it update the state that is later captured in expectState ?Mikolaj Leszczynski
12/12/2023, 9:50 AMskipItems also skips states