Files
meteor/tools/tests/build-errors.js
Michael Newman aedcffab3b Convert parse-stack.js to TypeScript (#10653)
* rename

* we don't need underscore to check whether an array is empty

* add types, resolve type issues

* remove unused markTop in run.js

* Make the type a little more consistent

* Tweak a check for an empty array

Co-Authored-By: Marcelo T Prado <marceloterreiroprado@gmail.com>
2020-04-20 14:47:34 -04:00

20 lines
688 B
JavaScript

var selftest = require('../tool-testing/selftest.js');
var Sandbox = selftest.Sandbox;
// This test was originally written to test the behavior of parse-stack.ts when
// there's a colon in a filename. We now try a lot harder to avoid putting
// colons in filenames. But it's still a decent test that errors in legacy
// source handlers work.
selftest.define("build errors - legacy handler error", function () {
var s = new Sandbox();
var run;
s.createApp("myapp", "build-errors");
s.cd("myapp");
run = s.run("build", "myapp.tgz");
run.waitSecs(60);
run.matchErr("crash in plugin (compiling foo.awesome)");
run.expectExit(1);
run.forbidAll("Couldn't parse stack");
});