From b0adecb4bb1fa0df8684f9de033d7ea4a591965b Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 22 Aug 2025 23:38:57 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- test/bundler/bun-build-api.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/bundler/bun-build-api.test.ts b/test/bundler/bun-build-api.test.ts index f9c5e274db..4e91006daa 100644 --- a/test/bundler/bun-build-api.test.ts +++ b/test/bundler/bun-build-api.test.ts @@ -715,14 +715,14 @@ test("onEnd Plugin with async callback", async () => { let onEndCalled = false; let asyncOperationCompleted = false; - + await Bun.build({ entrypoints: [join(dir, "entry.js")], plugins: [ { name: "async-plugin", setup(build) { - build.onEnd(async (result) => { + build.onEnd(async result => { onEndCalled = true; // Simulate async operation await new Promise(resolve => setTimeout(resolve, 50)); @@ -734,7 +734,7 @@ test("onEnd Plugin with async callback", async () => { }, ], }); - + expect(onEndCalled).toBe(true); // Currently, the build does NOT wait for async onEnd callbacks to complete // This is different from esbuild behavior but matches our current implementation