xtuc/webassemblyjs

run the unit tests through babel

Open

#125 aperta il 30 gen 2018

Vedi su GitHub
 (0 commenti) (2 reazioni) (0 assegnatari)JavaScript (96 fork)batch import
good first issue

Metriche repository

Star
 (742 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Currently the unit tests are run against the transpiled code in the lib folder. This has a few issues:

  1. it increases the build / test time
  2. the test code can only use language features currently supported node
  3. the import statements in test code reference the transpiled output, which makes it hard to navigate failure stack traces.
  4. We don't have any flow-typing for the unit test code

Ideally mocha would be run through babel - with source maps.

Guida contributor