OLD | NEW |
1 "use strict"; | 1 "use strict"; |
2 | 2 |
3 require("node-babel")(); | 3 require("node-babel")({ |
| 4 ignore: /\bcompiled\b/, |
| 5 blacklist: ["useStrict"] |
| 6 }); |
| 7 |
| 8 // TEMPORARY HACK: Establish filterClassesNew as an alias for filterClasses for |
| 9 // now, in order to allow testing both in parallel. |
| 10 let nodeModule = require("module"); |
| 11 let origResolve = nodeModule._resolveFilename; |
| 12 nodeModule._resolveFilename = function() |
| 13 { |
| 14 let params = Array.slice(arguments); |
| 15 if (params[0] == "filterClasses") |
| 16 params[0] = "filterClassesNew"; |
| 17 else if (params[0] == "../lib/filterClasses") |
| 18 params[0] = "../lib/filterClassesNew"; |
| 19 return origResolve.apply(this, params); |
| 20 }; |
4 | 21 |
5 require("./node_modules/.bin/nodeunit"); | 22 require("./node_modules/.bin/nodeunit"); |
OLD | NEW |