This commit is contained in:
kacper 2026-03-06 22:51:19 -05:00
parent 6acf267d48
commit b7614eb3f8
4794 changed files with 1280808 additions and 1546 deletions

View file

@ -0,0 +1,22 @@
import { parse } from "../index.js";
const _ = require('long-stack-traces');
describe("long stack trace", () => {
test("basic", (done) => {
function badFn() {
var err = new Error('oh no');
var trace = parse(err);
for (var i in trace) {
var filename = trace[i].getFileName();
if (typeof filename === 'string' && filename.match(/-----/)) {
done();
return;
}
}
expect.fail();
}
setTimeout(badFn, 10);
});
});