webassemblyjs
webassemblyjs copied to clipboard
run the unit tests through babel
Currently the unit tests are run against the transpiled code in the lib folder. This has a few issues:
- it increases the build / test time
- the test code can only use language features currently supported node
- the import statements in test code reference the transpiled output, which makes it hard to navigate failure stack traces.
- We don't have any flow-typing for the unit test code
Ideally mocha would be run through babel - with source maps.