param { string } text return { number } const getCountFromHeader = ( text ) : number => { const match = /\(([0-9.,]*)\)/ . exec ( text ) ; const countStr = match ? match [ 1 ] . replace ( '.' , '' ) : null ; return countStr ? parseInt ( countStr , 10 ) : 0 ; } ; export { getCountFromHeader , } ; Cypress . on ( 'uncaught:exception' , ( ) => false ) ;