How to use the recursive-readdir.__setFiles 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 get all network fonts', async () => {
            // set up mock data
            recursive.__setFiles(['foo.ttf', 'bar.ttf', 'baz.ttf', 'qux.ttf']);
            const fonts = await m.getAll('network');
            expect(fonts.length).toBe(4);
        });

recursive-readdir

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

MIT
Latest version published 2 years ago

Package Health Score

74 / 100
Full package analysis