xtuc/webassemblyjs

run the unit tests through babel

開放

#125 建立於 2018年1月30日

 (0 則留言) (2 個反應) (0 位負責人)JavaScript (96 個分叉)batch import
good first issue

倉庫指標

星標
 (742 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南