test: add tmpdir.fileURL()#49040
Conversation
|
Why is the URL not a |
For consistency with |
|
I see. For anyone else wondering the same thing, it sounds like the main issue is that |
|
We could have |
|
Considering we also already have |
1dbf437 to
0e08b72
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Landed in 7bbcb29 |
PR-URL: nodejs#49040 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: nodejs#49040 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: nodejs#49040 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: #49040 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: nodejs#49040 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: nodejs#49040 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: #49040 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: #49138 Refs: #49040 Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: #49138 Refs: #49040 Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: nodejs#49040 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: #49040 Backport-PR-URL: #50669 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: #49138 Refs: #49040 Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: nodejs/node#49040 Backport-PR-URL: nodejs/node#50669 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: nodejs/node#49138 Refs: nodejs/node#49040 Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: nodejs/node#49040 Backport-PR-URL: nodejs/node#50669 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
PR-URL: nodejs/node#49138 Refs: nodejs/node#49040 Reviewed-By: Luigi Pinca <[email protected]>
Almost every time
tmpdir.pathis used in tests, we have to importpathto use it.Whenever we need
URLof something in tmpdir, we also have to importurl.pathToFileURL.Adding
tmpdir.urlwould reduceto
or to native resolving
Additionally, maybe we could add path-oriented
tmpdir.resolve(...paths)to replacepath.join(tmpdir.path, ...paths)in tests?