mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +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
533 B
TypeScript
15 lines
533 B
TypeScript
import { $ } from "bun";
|
|
import { describe, test, expect } from "bun:test";
|
|
import { createTestBuilder } from "../test_builder";
|
|
const TestBuilder = createTestBuilder(import.meta.path);
|
|
|
|
describe("false", async () => {
|
|
TestBuilder.command`false`.exitCode(1).runAsTest("works");
|
|
|
|
TestBuilder.command`false 3 5`.exitCode(1).runAsTest("works with arguments");
|
|
|
|
TestBuilder.command`false --help`.exitCode(1).runAsTest("works with --help");
|
|
|
|
TestBuilder.command`false --version`.exitCode(1).runAsTest("works with --version");
|
|
});
|