-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init ReporterMachine #103
base: master
Are you sure you want to change the base?
init ReporterMachine #103
Conversation
@@ -180,7 +181,7 @@ export default class TestScheduler { | |||
aggregatedResults.snapshot.filesRemoved) | |||
); | |||
}; | |||
|
|||
reporterService.send('START'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thegoleffect how can we await
for the onRunStart
functions to finish running as we do in the line below? (L#185)
cc: @victorphoenix3 @jcs98
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want to "wait", you should have the async method dispatch another event on completion that transitions to another state. Then, replace the await code with either
- code that listens on states & executes something locally
- code that registers a method to the context that will get executed if exists on completion/state transition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, we were able to get it running!
Co-authored-by: Jainam Chirag Shah <jcshah98@gmail.com> Co-authored-by: Jayati Shrivastava <gaurijove@gmail.com>
Co-authored-by: Jainam Chirag Shah <jcshah98@gmail.com> Co-authored-by: Jayati Shrivastava <gaurijove@gmail.com>
Summary
Adds the XState skeleton for the Reporter rework issue
Test plan