mirror of
https://github.com/marko-js/marko.git
synced 2026-01-25 15:03:04 +00:00
* 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
11 lines
264 B
JavaScript
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");
|