Commit Graph
6 Commits
Author SHA1 Message Date
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Austin Morton 9052568afd Fix incorrect usage of Promise/async in test suite
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.
2020-09-23 01:20:40 -04:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
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>
2020-08-04 16:39:02 -04:00
Matt Godbolt 1888ac397f Introduce async/await. Package up the build results in the execution package. Use that to show compiler stderr/stdout in execution even if the compilation succeeds 2019-06-27 07:14:47 -05:00
Matt Godbolt 895bfd5913 Compiler Explorer Team->Authors (for consistency) 2019-05-30 16:33:07 -05:00
Partouf 126f8457f9 use npm package instead of executing tar 2019-02-08 12:49:26 +01:00