refactor: reorganized exports and removed obsolete helper branches
- Removed export leakage by demoting many helper and const symbols to module-local scope. - Renamed underscore-prefixed internals and cache fields, then updated related references and `satisfies never` checks. - Deleted obsolete logic branches and helpers, including harmony-stream interruption flow and unused benchmark runtime helpers. - Updated Biome config and manifests by broadening lint coverage and removing an unused `@napi-rs/cli` dev dependency. - Adjusted tests and utilities to use renamed test helpers and remove redundant private test-only helpers/locals.
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
import { describe, expect, it } from "bun:test";
|
||||
import { _resolveUpdateMethodForTest } from "../src/cli/update-cli";
|
||||
import { resolveUpdateMethodForTest } from "../src/cli/update-cli";
|
||||
|
||||
describe("update-cli install target detection", () => {
|
||||
it("uses bun update when prioritized omp is inside bun global bin", () => {
|
||||
const method = _resolveUpdateMethodForTest("/Users/test/.bun/bin/omp", "/Users/test/.bun/bin");
|
||||
const method = resolveUpdateMethodForTest("/Users/test/.bun/bin/omp", "/Users/test/.bun/bin");
|
||||
|
||||
expect(method).toBe("bun");
|
||||
});
|
||||
|
||||
it("uses binary update when prioritized omp is outside bun global bin", () => {
|
||||
const method = _resolveUpdateMethodForTest("/Users/test/.local/bin/omp", "/Users/test/.bun/bin");
|
||||
const method = resolveUpdateMethodForTest("/Users/test/.local/bin/omp", "/Users/test/.bun/bin");
|
||||
|
||||
expect(method).toBe("binary");
|
||||
});
|
||||
|
||||
it("uses binary update when bun global bin cannot be resolved", () => {
|
||||
const method = _resolveUpdateMethodForTest("/Users/test/.local/bin/omp", undefined);
|
||||
const method = resolveUpdateMethodForTest("/Users/test/.local/bin/omp", undefined);
|
||||
|
||||
expect(method).toBe("binary");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user