Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 56188fe

Browse filesBrowse files
richardlauMylesBorins
authored andcommitted
test: use tmpdir.refresh() in test-esm-windows.js
Use `tmpdir.refresh()` in `test/es-module/test-esm-windows.js` so that the temporary directory is cleaned before use and when the test exits. PR-URL: #30997 Reviewed-By: Denys Otrishko <shishugi@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent c10ee5d commit 56188fe
Copy full SHA for 56188fe

File tree

Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-3
lines changed
Open diff view settings
Collapse file

‎test/es-module/test-esm-windows.js‎

Copy file name to clipboardExpand all lines: test/es-module/test-esm-windows.js
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ const imp = (file) => {
1515
};
1616

1717
(async () => {
18-
const tmp = tmpdir.path;
19-
await fs.mkdir(tmp).catch(() => {});
20-
const rel = (file) => path.join(tmp, file);
18+
tmpdir.refresh();
19+
const rel = (file) => path.join(tmpdir.path, file);
2120

2221
{ // Load a single script
2322
const file = rel('con.mjs');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.