test.govlab/docs/core/lexers/shell.lexer.test.ts
test.govlab/docs/core/lexers/shell.lexer.test.ts is a file in Codebase Testing. 13 lines of code and 0 definitions.
import { describe, expect, it } from "vitest";
import { tokenizeCommand } from "@govlab/docs/core/lexers/shell.lexer.ts";
describe("tokenizeCommand", () => {
it("splits on whitespace and keeps a quoted run as one word", () => {
expect(tokenizeCommand("concurrently \"npm run a\" 'npm run b'\tvite")).toStrictEqual([
"concurrently",
"npm run a",
"npm run b",
"vite",
]);
expect(tokenizeCommand(" ")).toStrictEqual([]);
});
});