We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use the recursive-readdir.__setReturnError function in recursive-readdir

To help you get started, we’ve selected a few recursive-readdir examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vutran / os-fonts / __tests__ / index.js View on Github external
it('should return nothing for readdir errors', async () => {
            recursive.__setReturnError(true);
            const fonts = await m.getAll('network');
            expect(fonts.length).toBe(0);
        });
    });

recursive-readdir

Get an array of all files in a directory and subdirectories.

MIT
Latest version published 3 years ago

Package Health Score

74 / 100
Full package analysis