UPDATE: just use this plugin lol
To run a single test or category of tests in ember-mocha, you sometimes put .only()
after your it
or describe
or context
. But if this gets accidentally checked into the repository, the testing suite will erroneously pass for failures in any other test O_O.
This would be better as a jscs
or eslint
plugin - probably in ember-suave
(which is migrating jscs
to eslint
right now). But short-term, this helps :)
jk this is unnecessary because someone already made a plugin 🎉
https://github.com/lo1tuma/eslint-plugin-mocha/blob/master/docs/rules/no-exclusive-tests.md
It was just hard to find it :)
The general and google-able word for
.only
andiit
etc, is "exclusive test" 💡