feat: add phase 4 bun_test bootstrap

This commit is contained in:
Eric
2026-03-04 03:19:28 +00:00
parent f95d4a4c94
commit bb031f8f1f
6 changed files with 94 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
load("//bun:defs.bzl", "bun_test")
bun_test(
name = "passing_suite",
srcs = ["passing.test.ts"],
target_compatible_with = [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
)
bun_test(
name = "failing_suite",
srcs = ["failing.test.ts"],
target_compatible_with = [
"@platforms//cpu:x86_64",
"@platforms//os:linux",
],
)

View File

@@ -0,0 +1,5 @@
import { expect, test } from "bun:test";
test("failing suite", () => {
expect(1 + 1).toBe(3);
});

View File

@@ -0,0 +1,5 @@
import { expect, test } from "bun:test";
test("passing suite", () => {
expect(1 + 1).toBe(2);
});