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

test(cli): improve Spinner test #5108

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jun 21, 2024

closes #5098

@github-actions github-actions bot added the cli label Jun 21, 2024
@@ -4,4 +4,5 @@ const spinner = new Spinner();

spinner.start();

setTimeout(spinner.stop, 200);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This throws an error instead of actually stopping the spinner.

@@ -4,4 +4,5 @@ const spinner = new Spinner();

spinner.start();

setTimeout(spinner.stop, 200);
setTimeout(() => spinner.stop(), 200);
setTimeout(() => {}, 500);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait another 300ms (500ms - 200ms) to see if the spinner doesn't output text anymore

@kt3k kt3k merged commit 3fac8a2 into denoland:main Jun 24, 2024
13 checks passed
@kt3k kt3k deleted the improve-spinner-test-2 branch June 24, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(cli): Spinner.stop() terminates the sequence test failure
2 participants