diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/run_tests.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test/run_tests.js b/test/run_tests.js index f6a623942..88aded741 100644 --- a/test/run_tests.js +++ b/test/run_tests.js @@ -12,7 +12,7 @@ let assert = require("better-assert"); let vm = require("vm"); let fs = require("fs"); - +let instrument = require("typhonjs-istanbul-instrument-jspm").default; if ("function" !== typeof run) { throw Error("test must be run with 'mocha --delay ...'"); @@ -23,10 +23,21 @@ let emsc = require("../lib/emscripten/libwrapper.js"); // Do it here, since it breaks 'require'' for libwrapper let System = require("systemjs"); + System.config({ - defaultJSExtensions: true + defaultJSExtensions: true, + meta: { + './test/tests/taler.js': { + format: 'register' + }, + './lib/wallet/*': { + format: 'register' + } + } }); +instrument(System); + let mod = System.newModule({Module: emsc}); let modName = System.normalizeSync(__dirname + "/../lib/emscripten/emsc"); console.log("registering", modName); |