test: clean up lint warnings
This commit is contained in:
1 parent
53a0c966a5
commit
78532d76bd
2 files changed
+5
-8
No files matched your search
@@ -2,12 +2,9 @@ import { describe, expect, it } from "vitest";
|
||||
|
||||
import { formatHealthCheckFailure } from "./health-format.js";
|
||||
|
||||
const stripAnsi = (input: string) =>
|
||||
input.replace(
|
||||
// biome-ignore lint/suspicious/noControlCharactersInRegex: strip ANSI escape sequences
|
||||
/\u001b\[[0-9;]*m/g,
|
||||
"",
|
||||
);
|
||||
const ansiEscape = String.fromCharCode(27);
|
||||
const ansiRegex = new RegExp(`${ansiEscape}\\[[0-9;]*m`, "g");
|
||||
const stripAnsi = (input: string) => input.replace(ansiRegex, "");
|
||||
|
||||
describe("formatHealthCheckFailure", () => {
|
||||
it("keeps non-rich output stable", () => {
|
||||
|
||||
Reference in new issue
Block a user