In most cases the result was assertions simply not being run.
This was verified by changing the assertion in a way that should
have resulted in failure, and observing no tests failing.
Another case resulted in tests being registered to the wrong suite.
The common theme here is that if you are dealing with async in mocha
you must await everything or return any promise objects you create.
The simplest thing to do is convert the function to use async/await,
except in a `describe` callback where async can *not* be used. If the
async code is not going to generate any test cases, you can make use of
`before(async () => {});`. If you are going to dynamically generate any
test cases, you must do so synchronously within the `describe` callback.
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible
In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules
This PR attempts to not change code behavior when possible. In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the
code base to silence the error. You can find these by searching for `eslint-disable-next-line`.
Co-authored-by: Austin Morton <austinpmorton@gmail.com>
This commit adds support for hosting on windows, as well as better
support for the Visual C++ compiler. Specific interesting changes are:
- switch from /FAsc to /FA
- order functions in file order
- support demangling win32-style identifiers with undname
- clang++ and vc++ on win32 host are both supported