Index: test_wrapper.js |
=================================================================== |
--- a/test_wrapper.js |
+++ b/test_wrapper.js |
@@ -1,5 +1,22 @@ |
"use strict"; |
-require("node-babel")(); |
+require("node-babel")({ |
+ ignore: /\bcompiled\b/, |
+ blacklist: ["useStrict"] |
+}); |
+ |
+// TEMPORARY HACK: Establish filterClassesNew as an alias for filterClasses for |
+// now, in order to allow testing both in parallel. |
+let nodeModule = require("module"); |
+let origResolve = nodeModule._resolveFilename; |
+nodeModule._resolveFilename = function() |
+{ |
+ let params = Array.slice(arguments); |
+ if (params[0] == "filterClasses") |
+ params[0] = "filterClassesNew"; |
+ else if (params[0] == "../lib/filterClasses") |
+ params[0] = "../lib/filterClassesNew"; |
+ return origResolve.apply(this, params); |
+}; |
require("./node_modules/.bin/nodeunit"); |