mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
test debug scenario on legacy and modern build stack
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
import { Meteor } from "meteor/meteor";
|
||||
|
||||
Meteor.startup(() => {});
|
||||
|
||||
try {
|
||||
const errorStack = new Error().stack;
|
||||
console.log(errorStack);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
@@ -37,6 +37,9 @@ selftest.define("legacy build stack", async function () {
|
||||
await run.match(/safeWatcher\.watchLegacy/, false, true);
|
||||
await run.match(/_findSources for web\.browser.legacy/, false, true);
|
||||
|
||||
/* check debug stack */
|
||||
await run.match(/server\/main\.js:6:22/, false, true);
|
||||
|
||||
await run.stop();
|
||||
});
|
||||
|
||||
@@ -64,6 +67,9 @@ selftest.define("modern build stack", async function () {
|
||||
run.forbid(/Babel\.compile/, false, true);
|
||||
run.forbid(/_findSources for web\.browser\.legacy/, false, true);
|
||||
|
||||
/* check debug stack */
|
||||
await run.match(/server\/main\.js:6:22/, false, true);
|
||||
|
||||
await run.stop();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user