-
Notifications
You must be signed in to change notification settings - Fork 30k
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: create files and directories in the tmp directory instead of fixture directory #24077
Conversation
const existingFile = fixtures.path('exit.js'); | ||
const existingFile2 = fixtures.path('a.js'); | ||
const existingDir = tmpdir.path; | ||
|
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.
Added empty line?
const nonexistentDir = path.join(tmpdir.path, 'non-existent', 'foo', 'bar'); | ||
const existingFile = path.join(tmpdir.path, 'existingFile.js'); | ||
const existingFile2 = path.join(tmpdir.path, 'existingFile2.js'); | ||
const existingDir = path.join(tmpdir.path, 'dir'); | ||
const existingDir2 = fixtures.path('keys'); |
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.
Any reason you didn't move existingDir2
to something under tmpdir as well?
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.
Looks good to me, although some small comments that can optionally be addressed.
Resume Build CI: https://ci.nodejs.org/job/node-test-pull-request/18448/ |
Resume Build CI: https://ci.nodejs.org/job/node-test-pull-request/18518/ |
Resume Build doesn't rebase against latest master I don't think, so this is getting bitten by a flaky that's been fixed. I think. New full Ci... |
Landed in 1e0005e. Thanks for the contribution! 🎉 (If you're interested in other possible contributions to Node.js but don't have a good idea of where to start looking, some ideas are posted at https://www.nodetodo.org/next-steps/.) |
PR-URL: nodejs#24077 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #24077 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#24077 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #24077 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #24077 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes