| 93 | } |
| 94 | |
| 95 | const simplifyObject = object => { |
| 96 | return Object.keys(object) |
| 97 | .filter(k => k.indexOf('_') !== 0) |
| 98 | .filter(k => typeof object[k] !== 'function') |
| 99 | .filter(k => typeof object[k] !== 'object') |
| 100 | .reduce((obj, key) => { |
| 101 | obj[key] = object[key] |
| 102 | return obj |
| 103 | }, {}) |
| 104 | } |
| 105 | |
| 106 | const createWorkerObjects = (testGroups, config, testRoot, options, selectedRuns) => { |
| 107 | selectedRuns = options && options.all && config.multiple ? Object.keys(config.multiple) : selectedRuns |