All files / src/functions/execute execute.processes.in.folder.ts

62.5% Statements 5/8
100% Branches 0/0
0% Functions 0/2
71.42% Lines 5/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13    1x 1x   1x   1x       1x  
'use strict';
 
import {each} from 'lodash';
import {listSubfoldersByName} from '@owservable/folders';
 
import executeOnFilesRecursively from './execute.on.files.recursively';
 
const executeProcessesInFolder = (root: string, folder: string, execute: Function): void => {
	const folders: string[] = listSubfoldersByName(root, folder);
	each(folders, (folder: string) => executeOnFilesRecursively(folder, execute));
};
export default executeProcessesInFolder;