test debug scenario on legacy and modern build stack

This commit is contained in:
Nacho Codoñer
2025-05-06 16:25:06 +02:00
parent 67a7cbe23f
commit e2ed9426f2
2 changed files with 13 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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();
});