Files
OmniRoute/tests/unit/error-boundary-stack.test.ts
KooshaPari 4aae3eec22 fix(security): avoid rendering error stacks (#5624)
Integrated into release/v3.8.43 (drift-shed: cherry-picked the real change onto the release tip; stale-base drift dropped).
2026-06-30 10:40:58 -03:00

13 lines
405 B
TypeScript

import test from "node:test";
import assert from "node:assert/strict";
import { readFile } from "node:fs/promises";
import { join } from "node:path";
const repoRoot = join(import.meta.dirname, "../..");
test("app error boundary does not render stack traces", async () => {
const source = await readFile(join(repoRoot, "src/app/error.tsx"), "utf8");
assert.doesNotMatch(source, /error\.stack/);
});