mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 22:01:47 +00:00
* Do not run tests outside test scope * Fix tests * Fix type errors and remove potentially precarious uses of unreachable * yoops * Remove all instances of "Ruh roh" --------- Co-authored-by: Zack Radisic <56137411+zackradisic@users.noreply.github.com>
15 lines
528 B
TypeScript
15 lines
528 B
TypeScript
import { $ } from "bun";
|
|
import { describe, test, expect } from "bun:test";
|
|
import { createTestBuilder } from "../test_builder";
|
|
const TestBuilder = createTestBuilder(import.meta.path);
|
|
|
|
describe("true", async () => {
|
|
TestBuilder.command`true`.exitCode(0).runAsTest("works");
|
|
|
|
TestBuilder.command`true 3 5`.exitCode(0).runAsTest("works with arguments");
|
|
|
|
TestBuilder.command`true --help`.exitCode(0).runAsTest("works with --help");
|
|
|
|
TestBuilder.command`true --version`.exitCode(0).runAsTest("works with --version");
|
|
});
|