test('For array test in jest',()=>{. let arrA = ['A','B','C']. //檢查陣列內是否含有某值. expect(arrA).toContain('B'). //搭配迴圈檢查每個位置都不等於空.
確定! 回上一頁