code: function createKarmaSharderInfoMap(config) {
    return JSON.stringify(Object
      .keys(config.shardIndexMap)
      .map((id) => [ id, {
        shouldShard: !!id && config.shardIndexMap.hasOwnProperty(id),
        shardIndex: config.shardIndexMap[id],
        executors: config.executors,
        shardStrategy: config.shardStrategy,
        customShardStrategy: Buffer.from(config.customShardStrategy.toString(), 'utf8').toString('base64')
      } ])
      .reduce((payloadMap, [ id, payload ]) => {
        payloadMap[id.toString()] = payload;
        return payloadMap;
      }, {}));
  }
docs: eslint-disable-line security/detect-non-literal-fs-filename