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 2137024

Browse filesBrowse files
Trottaddaleax
authored andcommitted
test: do not write to fixtures dir in test-watch-file
Switch to tmpDir rather than fixtures for file writing. PR-URL: #34376 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 95b2a39 commit 2137024
Copy full SHA for 2137024

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/pummel/test-watch-file.js‎

Copy file name to clipboardExpand all lines: test/pummel/test-watch-file.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@
2424
require('../common');
2525
const assert = require('assert');
2626
const fs = require('fs');
27-
const fixtures = require('../common/fixtures');
27+
const path = require('path');
28+
const tmpdir = require('../common/tmpdir');
2829

29-
const f = fixtures.path('x.txt');
30+
tmpdir.refresh();
31+
const f = path.join(tmpdir.path, 'x.txt');
32+
fs.closeSync(fs.openSync(f, 'w'));
3033

3134
let changes = 0;
3235
function watchFile() {

0 commit comments

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