marko/test/__util__/test-init.js
Michael Rawlings 9a916d856c
Env var helpers (#1191)
* add MARKO_NO_MIGRATE env var to skip migration stage

* add EXPECT_DEPRECATED_FAILURES env var to expect all fixtures in a deprecated directory to fail

* add COMPLAIN_THROWS env var to cause deprecation warnings to be errors
2018-12-12 10:53:27 -08:00

11 lines
264 B
JavaScript

require("./patch-module");
require("complain").log = function(message) {
if (process.env.COMPLAIN_THROWS) {
throw new Error(message);
}
};
require("../../node-require").install({
compilerOptions: { writeToDisk: false }
});
require("it-fails");