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

Check file changes during test #476

Merged
merged 3 commits into from
Jun 3, 2019
Merged

Check file changes during test #476

merged 3 commits into from
Jun 3, 2019

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jun 2, 2019

This PR:

  • Uses temp dirs in prettier/main testing.
  • Checks file changes after the test run.

closes #408

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

Thanks for adding checkSourceFileChanges - it will be nice to not introduce any inadvertent changes to the source tree.

Just one comment...

test.ts Outdated
async function checkSourceFileChanges(startTime: number): Promise<void> {
await Deno.stdout.write(
new TextEncoder().encode("test checkSourceFileChanges ... ")
);
Copy link
Member

Choose a reason for hiding this comment

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

Why not console.log?

Copy link
Member Author

Choose a reason for hiding this comment

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

ok.

@ry ry merged commit 7daa887 into denoland:master Jun 3, 2019
@kt3k kt3k deleted the feature/use-temp-dir branch June 3, 2019 07:27
ry pushed a commit to ry/deno that referenced this pull request Oct 9, 2019
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.

tests make modifications to the source directory
2 participants