feat: add phase 4 bun_test bootstrap
This commit is contained in:
19
tests/bun_test_test/BUILD.bazel
Normal file
19
tests/bun_test_test/BUILD.bazel
Normal 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",
|
||||
],
|
||||
)
|
||||
5
tests/bun_test_test/failing.test.ts
Normal file
5
tests/bun_test_test/failing.test.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { expect, test } from "bun:test";
|
||||
|
||||
test("failing suite", () => {
|
||||
expect(1 + 1).toBe(3);
|
||||
});
|
||||
5
tests/bun_test_test/passing.test.ts
Normal file
5
tests/bun_test_test/passing.test.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { expect, test } from "bun:test";
|
||||
|
||||
test("passing suite", () => {
|
||||
expect(1 + 1).toBe(2);
|
||||
});
|
||||
Reference in New Issue
Block a user