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

Runs onSuccess twice consecutively after a file save. #130

Closed
eguneys opened this issue Nov 24, 2021 · 5 comments
Closed

Runs onSuccess twice consecutively after a file save. #130

eguneys opened this issue Nov 24, 2021 · 5 comments

Comments

@eguneys
Copy link

eguneys commented Nov 24, 2021

When I save a file, it runs the tests and clears the screen and runs the tests again happens in 1 second. So it fires twice consecutively. It's annoying.

@gilamran
Copy link
Owner

Can you provide an example code to reproduce?

@eguneys
Copy link
Author

eguneys commented Nov 24, 2021

Run yarn watch, make changes in src/pos.ts save.

https://github.com/eguneys/muchess

@gilamran
Copy link
Owner

I don't get see it running twice... only once
note that you can use --noClear flag to see the full output

@eguneys
Copy link
Author

eguneys commented Nov 24, 2021

I think this is happening microsoft/TypeScript#37994
I set --synchronousWatchDirectory and it works ok.

@gilamran
Copy link
Owner

gilamran commented Apr 3, 2022

@eguneys any updates on this one?

@eguneys eguneys closed this as completed Apr 3, 2022
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

No branches or pull requests

2 participants