Don't use __dirname in testCommon
See original GitHub issueShould probably use process.cwd()
, or better yet, a unique temporary directory.
Ref https://github.com/Level/leveldown-hyper/pull/68#discussion_r196815629
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:20 (20 by maintainers)
Top Results From Across the Web
Transition from __dirname to import.meta.url could be ...
using --experimental-modules. We could improve the documentation: import.meta.url is not an equivalent of __dirname several lines of code ...
Read more >Why using dirname in find command gives dots for each ...
I'm used to basename giving you the name of the file (in this case file.ext ) and dirname giving you the rest of...
Read more >test/lib/TestGyp.py - platform/external/chromium_org/tools/ ...
Note: Don't use this as a generic "rename" operation. In the. future, "relocating" parts of a GYP tree may affect the state of....
Read more >Alternatives to __dirname in Node.js with ES modules
To be fair, this is not really a new problem: __dirname and __filename aren't shared either, but import.meta.url is! So, using it directly ......
Read more >tools/fuzz-test.sh · master · Wireshark Foundation ... - GitLab
dirname "$0" )"/test-common.sh || exit 1 # Sanity check to make sure we ... ulimit -c unlimited # Don't enable ulimit -v when...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Unassigned myself for now and closed incorrect PR.
I prefer that being passed in. I.e. use
process.nextTick
unless a customnextTick
function is provided.