Skip to content

Instantly share code, notes, and snippets.

View ddoice's full-sized avatar

Rafael Garcia Lara ddoice

  • kodify
  • Spain
View GitHub Profile
@ddoice
ddoice / readme.md
Last active September 27, 2022 09:51
Turborepo github actions reporter fix

vercel/turborepo#1363

Not perfect but in the meantime this small script can be used to wrap Jest and Playwright scripts and capture these errors to later remove the package + task prefix.

#!/bin/bash
$@ |& tee output.txt
cat output.txt | grep " ::error " | sed -e "s/^.*:.*:\s::error/::error/"
failed=$(cat output.txt | grep " ::error " | wc -l)

Clear adb log history

adb logcat -c

Attach to log with colors

adb logcat -v color

Navigate in your SSR app like Google bot mobile.

· Problem:

If you log your app front unhandled errors (you must!) maybe you find some unexpected errors. Google bot mobile version uses a legacy Chrome version (v41). You cannot install older versions of Chrome due to security reasons.

· Solution: Use a older chromium version (as you may know Chrome is based on Chromium)