dwyl / aws-lambda-test-utils

Mock event and context objects without fluff.
GNU General Public License v2.0
44 stars 4 forks source link

issues with running coverage #9

Open Jbarget opened 7 years ago

Jbarget commented 7 years ago

Im having some really strange behaviour which i think is related a race condition. Without changing anything in the code if i run npm test or npm run coverage sometimes it will ignore some tests and give me an operator fail

screen shot 2017-04-12 at 12 49 31

and sometimes it works all fine:

screen shot 2017-04-12 at 12 49 41

any ideas?

Jbarget commented 6 years ago

just noticed that if you comment out all the tests in mockContext.test.js then the tests run smoothly every time....