Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

init ReporterMachine #103

wants to merge 4 commits into from

Conversation

flozender
Copy link
Member

Summary

Adds the XState skeleton for the Reporter rework issue

Test plan

@@ -180,7 +181,7 @@ export default class TestScheduler {
aggregatedResults.snapshot.filesRemoved)
);
};

reporterService.send('START');
Copy link
Member Author

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

Copy link
Member

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

  1. code that listens on states & executes something locally
  2. code that registers a method to the context that will get executed if exists on completion/state transition

Copy link
Member Author

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!

flozender and others added 2 commits December 9, 2020 20:12
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants