Skip to content

Instantly share code, notes, and snippets.

View bfmatei's full-sized avatar
💭
¯\_(ツ)_/¯

Bogdan Matei bfmatei

💭
¯\_(ツ)_/¯
View GitHub Profile
@bfmatei
bfmatei / README.md
Last active December 23, 2020 11:20
Repeat Jest test

The following is a quick and dirty bash script that runs a specific Jest test 10 times and counts how many times it failed and the number of occurences for the same error.

It uses jest-silent-reporter to keep the output clean and only output the errors, so be sure to install it before running the script.

Example output:

Success: 6
Failed: 4
=====