MCPcopy Index your code
hub / github.com/nodejs/node / testPromises

Function testPromises

test/parallel/test-vfs-destructuring.js:67–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65const { readdir, lstat } = require('fs/promises');
66
67async function testPromises() {
68 const entries = await readdir(MOUNT);
69 assert.ok(entries.includes('file.txt'));
70
71 const stats = await lstat(FILE);
72 assert.strictEqual(stats.isFile(), true);
73}
74
75testPromises().then(common.mustCall(() => {
76 myVfs.unmount();

Callers 1

Calls 5

includesMethod · 0.80
readdirFunction · 0.70
lstatFunction · 0.70
okMethod · 0.45
isFileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…