from official website NGXS
The example from the official page works correctly. If you stub some function from an action, which returns Observable, try embedding the delay inside your stub function. For example,
stubFunc: () => {
return timer(0).pipe( ... );
}