GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: avoid empty fixture in fs test · nodejs/node@c74c83a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-fs-error-messages.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-fs-error-messages.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-error-messages.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,17 @@
2222
'use strict';
2323
const common = require('../common');
2424
const fixtures = require('../common/fixtures');
25+
const tmpdir = require('../common/tmpdir');
2526
const assert = require('assert');
2627
const fs = require('fs');
28+
29+
tmpdir.refresh();
30+
2731
const nonexistentFile = fixtures.path('non-existent');
2832
const nonexistentDir = fixtures.path('non-existent', 'foo', 'bar');
2933
const existingFile = fixtures.path('exit.js');
3034
const existingFile2 = fixtures.path('create-file.js');
31-
const existingDir = fixtures.path('empty');
35+
const existingDir = tmpdir.path;
3236
const existingDir2 = fixtures.path('keys');
3337
const { COPYFILE_EXCL } = fs.constants;
3438
const uv = process.binding('uv');

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.