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(fs): do not write files in source tree during test #5358

Open
kt3k opened this issue Jul 9, 2024 · 2 comments · May be fixed by #6236
Open

test(fs): do not write files in source tree during test #5358

kt3k opened this issue Jul 9, 2024 · 2 comments · May be fixed by #6236
Labels
good first issue Good for newcomers

Comments

@kt3k
Copy link
Member

kt3k commented Jul 9, 2024

std/fs test cases directly write files in source tree during test. This makes debugging of test cases difficult when they failed in the middle. These test cases should use temp directory instead.

@kt3k kt3k added the good first issue Good for newcomers label Nov 13, 2024
@jbronder
Copy link

I'd be interested in working through these. I looked over some of the test files and it looks like copy_test.ts and exists_test.ts do incorporate making temp directories. I imagine similar approaches for the other applicable _test.ts files.

@kt3k
Copy link
Member Author

kt3k commented Nov 28, 2024

Thanks!

I looked over some of the test files and it looks like copy_test.ts and exists_test.ts do incorporate making temp directories. I imagine similar approaches for the other applicable _test.ts files.

Yes, that's correct

jbronder added a commit to jbronder/deno_std that referenced this issue Dec 4, 2024
jbronder added a commit to jbronder/deno_std that referenced this issue Dec 4, 2024
jbronder added a commit to jbronder/deno_std that referenced this issue Dec 4, 2024
jbronder added a commit to jbronder/deno_std that referenced this issue Dec 4, 2024
jbronder added a commit to jbronder/deno_std that referenced this issue Dec 4, 2024
jbronder added a commit to jbronder/deno_std that referenced this issue Dec 4, 2024
jbronder added a commit to jbronder/deno_std that referenced this issue Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants