-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: fix test-repl-require-after-write #27088
Conversation
Currently, the test creates a file in the cwd and doesn't clean it up. Use a temporary directory instead.
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.
Thanks!
I would like to fast-track this. Please +1 if you're fine with that. |
I just pushed a fix (forgot a slash) |
|
||
tmpdir.refresh(); | ||
|
||
const requirePath = tmpdir.path + '/non-existent.json'; |
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.
Nit: path.join()
?
what am I missing with |
Looks like something has happened to the |
Thanks @richardlau I think I know what it is now. Since I'm injecting the value in a string literal, the |
Landed in 58aaf58, thanks for the PR! |
Currently, the test creates a file in the cwd and doesn't clean it up.
Use a temporary directory instead.