Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions test/known_issues/test-fs-readdir-promise-recursive-with-buffer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

// This test will fail because the the implementation does not properly
// handle the case when the path is a Buffer and the function is called
// in recursive mode.

// Refs: https://github.com/nodejs/node/issues/58892

const common = require('../common');

const { readdir } = require('node:fs/promises');
const { join } = require('node:path');

const testDirPath = join(__dirname, '..', '..');
readdir(Buffer.from(testDirPath), { recursive: true }).then(common.mustCall());
15 changes: 15 additions & 0 deletions test/known_issues/test-fs-readdir-recursive-with-buffer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

// This test will fail because the the implementation does not properly
// handle the case when the path is a Buffer and the function is called
// in recursive mode.

// Refs: https://github.com/nodejs/node/issues/58892

const common = require('../common');

const { readdir } = require('node:fs');
const { join } = require('node:path');

const testDirPath = join(__dirname, '..', '..');
readdir(Buffer.from(testDirPath), { recursive: true }, common.mustCall());
15 changes: 15 additions & 0 deletions test/known_issues/test-fs-readdir-sync-recursive-with-buffer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use strict';

// This test will fail because the the implementation does not properly
// handle the case when the path is a Buffer and the function is called
// in recursive mode.

// Refs: https://github.com/nodejs/node/issues/58892

require('../common');

const { readdirSync } = require('node:fs');
const { join } = require('node:path');

const testDirPath = join(__dirname, '..', '..');
readdirSync(Buffer.from(testDirPath), { recursive: true });
Loading