Consider this script:
const mySet = new Set([1, 2, 3]);
mySet.filter(i => i < 3);
In the browser this code throws mySet.filter is not a function error.
Yet when this code runs in a Jest test – it works.
Does somebody know why this happens and what should I do if I want my test to detect this bug?
Edit:
I know how to fix the code so it does not throw. My question is how do I make the test throw and fail on this code.
Thanks!
best pharmacy prices for sildenafil – cheap generic viagra no prescription generic viagra for sale in canada
neurontin cap 300mg price – buy neurontin uk cheapest price for levothyroxine
457325 346687Id want to verify with you here. Which is not 1 thing I usually do! I take pleasure in reading a submit that will make individuals feel. Moreover, thanks for permitting me to remark! 372553
best price 20mg prednisone – 20 mg prednisone prednisone for sale
order hydroxychloroquine – plaquenil drug buy valacyclovir generic
sildalis medication – fluconazole 200mg for sale order metformin without prescription
buy sildenafil sale – cheap tadalafil sale order cialis
order chloroquine online cheap – sildenafil 50 mg viagra online buy
742309 234302Some genuinely superb blog posts on this internet site , regards for contribution. 353149