mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
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:
@@ -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",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user