Repository navigation
feat: implement core functionality - #1
Conversation
There was a problem hiding this comment.
В этом файле добавил только парсинг конфига.
There was a problem hiding this comment.
Ты еще тут подписку на событие WARNING выкосил
There was a problem hiding this comment.
и еще ты тут добавил передачу вторым параметром директории репорта в утилитные методы
There was a problem hiding this comment.
Полностью скопировал из gemini
There was a problem hiding this comment.
Полностью скопировал из gemini
There was a problem hiding this comment.
Полностью скопировал из gemini
There was a problem hiding this comment.
Полностью скопировал из gemini
There was a problem hiding this comment.
Полностью скопировал из gemini, только выгасил addWarning - это вроде как legacy.
There was a problem hiding this comment.
Здесь добавил прокидывание reportDir - раньше она была захардкожена.
There was a problem hiding this comment.
Порефакторил и добавил логгер.
There was a problem hiding this comment.
Добавил большую часть тестов.
There was a problem hiding this comment.
Добавил часть тестов
674fa46 to
d9d2a92
Compare
There was a problem hiding this comment.
Не забыть поменять на нормальную версию
0653af6 to
181ac6a
Compare
There was a problem hiding this comment.
Странно звучит - "Общий плагин для gemini ..." =)
There was a problem hiding this comment.
Тут скорее в значении обычный, но все равно как-то странно, да)
There was a problem hiding this comment.
давай может явно укажем, что это путь к папке:
path: 'my/gemini-reports'There was a problem hiding this comment.
Ты еще тут подписку на событие WARNING выкосил
There was a problem hiding this comment.
а зачем ты тут еще раз промисифаешь fs-extra? Ты же его уже запромисифаил в точке входа.
There was a problem hiding this comment.
тут подписка на warning разве нужна еще?
There was a problem hiding this comment.
тебе же handlebarsStub только в одном тесте нужен. Почему бы этот returns и инициализацию handlebarsStub не унести в него?
There was a problem hiding this comment.
handlebarsStub - да, в одном. Но returns нужен для работы многих тестов.
There was a problem hiding this comment.
а зачем тебе здесь инстанс ошибки создавать? Ты же можешь просто вернуть some-error и тогда можно будет проверить используя метод calledWith
There was a problem hiding this comment.
тут строка больше 120 символов )
There was a problem hiding this comment.
Не пойму зачем тут concat нужен можно же просто:
const components = ['images', result.suite.path, result.state.name, `${result.browserId}~${kind}${retrySuffix}.png`);There was a problem hiding this comment.
Не пойму зачем тут concat
Чтобы не было вложенных массивов
There was a problem hiding this comment.
logger: _.pick(console, ['log', 'warn', 'error']There was a problem hiding this comment.
может эти функции тоже выше объявим, как первые три?
По моему будет удобнее читаться.
0cd004a to
a641010
Compare
There was a problem hiding this comment.
тут же можно в одну строку фигануть:
gemini.on(gemini.events.END, (stats) => resolve(model.getResult(stats)));There was a problem hiding this comment.
Тут же нужно еще проверить, что переданный объект не модифицировался
There was a problem hiding this comment.
Не, здесь так не получится, мы же saveDiffTo вызываем не относительно того, что в then прилетает, а относительно destPath из замыкания.
There was a problem hiding this comment.
можно не добавлять - ты его нигде не используешь
There was a problem hiding this comment.
вынеси опции в отдельную переменную - проще будет читаться
There was a problem hiding this comment.
добавь в описание, что ты тут еще проверяешь и опцию preventIndent - без нее у тебя metaInfo разлезится по всей странице
* feat(visual-checks-sidebar): add sidebar for visual checks page * feat(visual-checks-search): add search for visual checks page * feat(visual-checks-sidebar): fixes #0 * feat(visual-checks-sidebar): fixes #1 * feat(visual-checks-sidebar): fixes #2 * feat(visual-checks-sidebar): fixes #3 * feat(visual-checks-sidebar): fixes #4
* feat(new-ui): squash repeated steps * feat(new-ui): squash repeated steps to groups * feat(new-ui): squash repeated steps to groups #1 * feat(new-ui): squash repeated steps to groups #2 * feat(new-ui): squash repeated steps to groups #3 * feat(new-ui): squash repeated steps to groups #4 * feat(new-ui): squash repeated steps to groups #5 * feat(new-ui): squash repeated steps to groups #6 * feat(new-ui): squash repeated steps to groups #7 * feat(new-ui): squash repeated steps to groups #7 * feat(new-ui): squash repeated steps to groups #8 --------- Co-authored-by: rocketraccoon <rocketraccoon@yandex-team.ru>
/cc @j0tunn, @sipayRT, @eGavr, @tormozz48, @DudaGod