fix(test): clean up esbuild decorator test boilerplate

Remove unused _testName/_failures variables from test boilerplate and
add explicit stdout: "pipe" to Bun.spawn call.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarred Sumner
2026-01-25 09:08:33 +01:00
parent f621babdae
commit 3048ff4eab

View File

@@ -23,9 +23,6 @@ function prettyPrint(x) {
try { return x + ''; } catch { return 'typeof ' + typeof x; }
}
let _testName = '';
let _failures = 0;
function assertEq(callback, expected) {
let x;
try { x = callback(); } catch (e) {
@@ -68,6 +65,7 @@ async function runDecoratorTest(code: string) {
cmd: [bunExe(), "test.ts"],
env: bunEnv,
cwd: String(dir),
stdout: "pipe",
stderr: "pipe",
});