Files
bun.sh/test/js/bun/shell/commands/false.test.ts
Jarred Sumner 291a39bd3f Do not run shell tests outside test scope (#10199)
* 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>
2024-04-16 14:03:02 -07:00

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");
});