diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-04-27 15:31:15 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-04-27 15:31:15 +0200 |
commit | 97f3911c93c841f089f705e7edcef6a6bec45f2e (patch) | |
tree | 50b0b425ac3d977ed90aa4bc74e1e7b5e59ff93c /test | |
parent | 004a0372abd42da19690d95b25ede5b0ffe10601 (diff) |
istanbul instrumentation
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); |