diff --git a/test/cli/test/test-line-filter.test.ts b/test/cli/test/test-line-filter.test.ts index ad6a68c254..d1ce7ecfdd 100644 --- a/test/cli/test/test-line-filter.test.ts +++ b/test/cli/test/test-line-filter.test.ts @@ -1,4 +1,4 @@ -import { test, expect, describe } from "bun:test"; +import { describe, expect, test } from "bun:test"; import { bunEnv, bunExe, tempDir } from "harness"; describe("test line filtering", () => { @@ -32,11 +32,7 @@ test("test 3 - should NOT run", () => { stderr: "pipe", }); - const [stdout, stderr, exitCode] = await Promise.all([ - proc.stdout.text(), - proc.stderr.text(), - proc.exited, - ]); + const [stdout, stderr, exitCode] = await Promise.all([proc.stdout.text(), proc.stderr.text(), proc.exited]); expect(exitCode).toBe(0); expect(stdout).toContain("✅ Target test ran on line 8"); @@ -84,11 +80,7 @@ describe("outer", () => { stderr: "pipe", }); - const [stdout, stderr, exitCode] = await Promise.all([ - proc.stdout.text(), - proc.stderr.text(), - proc.exited, - ]); + const [stdout, stderr, exitCode] = await Promise.all([proc.stdout.text(), proc.stderr.text(), proc.exited]); expect(exitCode).toBe(0); // When targeting describe block, all tests within should run @@ -127,11 +119,7 @@ test("test 3", () => { stderr: "pipe", }); - const [stdout, stderr, exitCode] = await Promise.all([ - proc.stdout.text(), - proc.stderr.text(), - proc.exited, - ]); + const [stdout, stderr, exitCode] = await Promise.all([proc.stdout.text(), proc.stderr.text(), proc.exited]); expect(exitCode).toBe(0); expect(stdout).toContain("✅ Test 1 on line 3"); @@ -165,11 +153,7 @@ test("target test", () => { stderr: "pipe", }); - const [stdout, stderr, exitCode] = await Promise.all([ - proc.stdout.text(), - proc.stderr.text(), - proc.exited, - ]); + const [stdout, stderr, exitCode] = await Promise.all([proc.stdout.text(), proc.stderr.text(), proc.exited]); expect(exitCode).toBe(0); expect(stdout).toContain("✅ Target test on line 8"); @@ -207,11 +191,7 @@ test("another test", () => { stderr: "pipe", }); - const [stdout, stderr, exitCode] = await Promise.all([ - proc.stdout.text(), - proc.stderr.text(), - proc.exited, - ]); + const [stdout, stderr, exitCode] = await Promise.all([proc.stdout.text(), proc.stderr.text(), proc.exited]); expect(exitCode).toBe(0); expect(stdout).toContain("✅ Testing"); @@ -220,4 +200,4 @@ test("another test", () => { // Should run all iterations of test.each expect(stdout).toMatch(/2 pass/); }); -}); \ No newline at end of file +});