Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Fail if test files throw on load #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

transplier
Copy link

If the files loaded into mocha throw an error on load (i.e, someone mistyped a require), the current behavior is to silently catch the error and report success. I think this is actually a Grunt behavior (async tasks don't fail if they throw), but I don't think we'll have any luck changing how Grunt works.

I also added a missing dev dependency to package.json to get the tests working again.

@transplier
Copy link
Author

@yaymukund Thoughts on this change? Could save people's CI from reporting incorrectly.

@transplier
Copy link
Author

@yaymukund Still interested in getting this merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant