-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: emit sync state on sync.{start,stop} #518
Conversation
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.
Added a non-blocking suggestion but lgtm - thanks for the quick fix!
@@ -259,3 +260,40 @@ test('no sync capabilities === no namespaces sync apart from auth', async (t) => | |||
|
|||
await Promise.all(projects.map((p) => p.close())) | |||
}) | |||
|
|||
test('Sync state emitted when starting and stopping sync', async function (t) { |
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.
potential suggestion: add some assertions to test idempotency of start()
and stop()
i.e. events are not emitted for subsequent calls that do not meaningfully change sync state
maybe that's diving too much into internals though...
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.
Gave this a 30-second scan and it looks good to me. I suspect Andrew's review was more thorough but hoping my 👍🏻 helps!
fixes #510