refactor: trim tooling helper exports

This commit is contained in:
Peter Steinberger
2026-05-02 07:53:11 +01:00
parent d111676bcb
commit 395fc11005
5 changed files with 7 additions and 11 deletions

View File

@@ -8,11 +8,11 @@ export function formatBytesAsMb(valueBytes) {
: `${(valueBytes / 1024 / 1024).toFixed(1)}MB`;
}
export function formatSignedMs(value, digits = 1) {
function formatSignedMs(value, digits = 1) {
return `${value > 0 ? "+" : ""}${formatMs(value, digits)}`;
}
export function formatSignedBytesAsMb(valueBytes) {
function formatSignedBytesAsMb(valueBytes) {
return valueBytes === null || valueBytes === undefined
? "n/a"
: `${valueBytes > 0 ? "+" : ""}${formatBytesAsMb(valueBytes)}`;
@@ -46,7 +46,7 @@ export function resolveTestArea(file) {
return parts[0] || normalized;
}
export function resolveTestFolder(file, depth = 2) {
function resolveTestFolder(file, depth = 2) {
const normalized = normalizeTrackedRepoPath(file);
const dir = path.posix.dirname(normalized);
if (dir === ".") {

View File

@@ -23,7 +23,7 @@ const REQUIRED_BOOTSTRAP_WORKSPACE_FILES = [
"BOOTSTRAP.md",
];
export const WORKSPACE_BOOTSTRAP_SMOKE_TIMEOUT_MS = 15_000;
const WORKSPACE_BOOTSTRAP_SMOKE_TIMEOUT_MS = 15_000;
const SAFE_UNIX_SMOKE_PATH = "/usr/bin:/bin";
export function createWorkspaceBootstrapSmokeEnv(env, homeDir, overrides = {}) {