Skip to content

helix ​

@c9up/helix: the test runner: a helix test CLI that runs each file in its own worker, a test / describe DSL with an injected test context, expect and assert assertions, vi mocks, container overrides and a frozen clock. Guide: The test runner.

Installation ​

bash
pnpm add -D @c9up/helix

The helix binary loads TypeScript test files through tsx when it is installed (--tsx=false uses the parent's loader instead). A ream app drives helix through @c9up/helix-plugin-ream and ream test.

helix test runs through a Rust engine. The engine comes as one small package per platform, @c9up/helix-<platform>, for linux x64 and arm64 (glibc), macOS x64 and arm64, and Windows x64. @c9up/helix lists them as optional dependencies, and your package manager installs only the one that matches your machine. No Rust toolchain is needed. Do not install with optional dependencies turned off (--no-optional, --omit=optional): the engine would be left out.

Without the engine, a plain run throws E_HELIX_NATIVE_REQUIRED, and its message names the package to install, for example @c9up/helix-linux-x64-gnu. The load error is the exception's cause. A run with --coverage, --diff-cov or --list-pinned, or with a reporterInstance passed to run(), uses the TypeScript pool, which does not load the engine.

Entry points ​

ImportContents
@c9up/helixThe DSL (test, describe, it, hooks), expect, vi, configure, the test context, the event emitter, the container facade, and time.
@c9up/helix/runtimeThe DSL and the in-worker engine, with the lower-level pieces (executeRoot, equals, matchers, …).
@c9up/helix/runtime/workerrunTestFile(): collects and runs one test file in the current process.
@c9up/helix/containerThe container facade: useContainer, override, overrideOn, clearActiveContainer, spy.
@c9up/helix/timefreeze, travel, travelTo, unfreeze, frozenAt.
@c9up/helix/runnerThe programmatic runner a host framework drives from its own config file.
@c9up/helix/bin/helix.jsThe CLI script, also installed as the helix binary.

The helix binary ​

sh
helix test [files...|dirs...|suites...] [flags]

Positionals name test files or directories. When every positional matches a suite declared in helix.config.*, they name suites instead. With no positional and a config present, every suite runs, in order. test is the only subcommand and the default one. helix sets NODE_ENV=test before reading the config.

A non-boolean flag takes its value after = (--timeout=5000); --flag=false (or 0, no, off) turns a boolean off. An unknown flag is an error; -- ends flag parsing.

FlagValueDescription
--reporterspec | dot | jsonOutput format (spec by default).
--reporterslistReporters to activate together, comma-separated (spec,json).
--threadsnumberConcurrent workers.
--timeoutmsPer-test timeout.
--file-timeoutmsHow long one file may run before its worker is killed (default 600000).
--retriesnumberExtra attempts on failure (default 0); 0 is accepted.
--colorsbooleanANSI colours.
--tsxbooleanLoads workers through tsx (default true).
--includeglob, repeatableGlob patterns to include.
--excludeglob, repeatableGlob patterns to exclude.
--grepstringRuns only tests whose full name matches (regex or substring).
--tagslistTag filter (@fast, ~@slow excludes); any tag matches by default.
--match-all / --matchAllbooleanRequires every --tags entry.
--testslistExact test titles to run.
--groupslistExact group titles to run.
--fileslistSubstrings matched against test file paths.
--suitestringName of the suite these files belong to (meta.suite).
--bailbooleanStops at the first failure.
--bail-layergroup | suite | runnerHow far a bail reaches.
--failedbooleanRe-runs only the tests that failed last run.
--list-pinnedbooleanPrints the tests marked .pin() and runs nothing.
--silentbooleanDrops what the tests print.
--pass-with-no-testsbooleanExits 0 when no test file or no test is found.
--allow-onlybooleanLets .only / .pin() narrow the run; off under CI unless set.
--force-exitbooleanCalls process.exit() as soon as the run ends.
--watchbooleanRe-runs on file changes.
--pollbooleanWith --watch: detects changes by polling.
--watch-debouncemsDebounce window of watch mode (default 200, max 5000).
--only-changedbooleanAccepted; prints a notice and runs full discovery.
--coveragebooleanV8 coverage collection.
--coverage-reporterslisttext-summary, lcov, json-summary.
--coverage-dirpathCoverage output directory.
--coverage-thresholdsJSONInline thresholds, {"lines":80,"functions":75}.
--diff-covbooleanDiff coverage against a base branch (requires --coverage).
--diff-cov-baserefGit ref to diff against (default origin/main, then main).
--diff-cov-thresholdsJSONInline diff thresholds, {"lines":80}.
--help, -hPrints the help.

Reporter output ​

An error that carries a code keeps it in every reporter. spec prints the code in brackets before the message: [E_HELIX_TIMEOUT] test "slow" exceeded 100ms timeout. dot prints only F and E.

json writes one JSON object per line on stdout:

eventOther fieldContent
file:startfileThe absolute path of the file.
file:endresultThe file's FileResult: file, suites, tests, totals, durationMs. A failed test's error is a SerializedError: name, message, code when the error has one, stack, and actual, expected, operator for an assertion.
file:errorerrorAn error of the file outside its tests: file, message, code, stack.
summarysummarytotals, files, fileErrors, durationMs.

code is absent when the error has none, for example a plain Error thrown by a test. A file error raised in the worker keeps the code of what was thrown. A file error the pool finds itself has a helix code: E_HELIX_TIMEOUT when the file ran past --file-timeout, E_HELIX_WORKER_FAILED when the worker failed outside the tests.

Exports ​

@c9up/helix ​

ExportKindDescription
test, itfunctionDeclares a test; returns a TestHandle. Also .skip, .only, .todo, .each, .group, .macro.
describefunctionDeclares a suite. Also .skip, .only, .todo.
beforeAll, afterAll, beforeEach, afterEachfunction(fn: HookFn, timeoutMs?: number) => void.
TestconstTest.macro(name, fn): adds a named method to every TestHandle.
expectconstexpect(value, message?): a chainable assertion (ExpectStatic).
createAssertfunctionBuilds an Assert, the object behind ctx.assert.
errorsnamespaceThe package's errors, one class per code, see Errors
viconstMocks, spies, fake timers and system time.
configurefunctionconfigure(options: ConfigureOptions): Promise<void>: installs plugins and runner hooks.
drainRunnerTeardownsfunctiondrainRunnerTeardowns(): Promise<unknown[]>: runs every registered runner teardown, in reverse order.
TestContextclassThe context injected into each test: assert, test, cleanup(), plus what plugins add.
TestContextRegistryconstmacro, getter, clear, has: extends TestContext at runtime.
buildTestContextfunctionbuildTestContext(test: TestInstance): TestContext.
getActiveTestfunctiongetActiveTest(): TestInstance | undefined: the running test.
getActiveTestOrFailfunctiongetActiveTestOrFail(): TestInstance: the same, or throws outside a test.
onTestFinishedfunctiononTestFinished(cb: TestCleanup): void: runs after the current test, whatever its outcome.
onTestFailedfunctiononTestFailed(cb: TestCleanup): void: runs only if the current test fails.
EmitterclassTyped emitter over RunnerEvents: on, once, off, clear, emit.
emitterconstThe process-wide emitter.
RunnerclassThe run handed to plugins: failed, bail(), onSuite(), registerReporter(), suites, getSummary().
timenamespaceThe @c9up/helix/time functions.
useContainer, override, overrideOn, clearActiveContainer, spyfunctionThe container facade, see @c9up/helix/container.
AssertinterfaceThe ctx.assert API.
Assertion, ExpectStatic, AsymmetricMatchertypeThe expect chain, its static side, and an asymmetric matcher.
MatcherName, MatcherResulttypeA matcher's name; { pass: boolean; message(): string }.
Vi, Spytypetypeof vi; a spy function with its mock record.
TestOptionsinterfaceThird argument of test: retry, timeout, tags, fails.
TestHandle, DatasetHandle, DatasetSource, TapHandle, TapOptionsinterface / typeThe chainable handles of a test and its dataset.
TestInstanceinterfacectx.test: title, fullName, options, dataset, context, isPinned, resetTimeout(), cleanup().
Group, GroupInstanceinterfaceThe test.group() handle and the instance its hooks receive.
Hook, HookFn, HookType, CleanupFn, DoneFntypeLifecycle hook shapes.
ConfigureOptions, Plugin, PluginApi, PluginContext, RunnerHooktypeThe configure() and plugin API.
CLIArgsinterfaceThe run's command-line flags, as seen from a worker (api.cliArgs).
RunnerEvents, EventHandlertypeEvent names and payloads; a listener for one.
TestStartNode, TestEndNode, GroupStartNode, GroupEndNode, SuiteStartNode, SuiteEndNode, RunnerStartNode, RunnerEndNodetypeEvent payloads.
EmittedError, EmittedTitle, EmittedDataset, ErrorPhasetypeParts of the event payloads.
RunnerSummary, SummaryAggregatesinterfaceWhat runner.getSummary() returns.
FileResult, SuiteResult, TestResultinterfaceResults of one file.
ContainerLike, ContainerToken, HelixContainertypeThe container shapes the facade accepts.

@c9up/helix/runtime ​

Everything above except the container facade and time, plus:

ExportKindDescription
addHookfunctionaddHook(type: HookType, fn: HookFn, timeoutMs?: number): void.
getRoot, resetRootfunctionThe collected suite tree of the current file; a fresh one.
executeRootfunctionexecuteRoot(root: SuiteNode, file: string, options?: ExecuteOptions): Promise<FileResult>.
equalsfunctionequals(a: unknown, b: unknown, options?: EqualsOptions): boolean: deep equality (strict for toStrictEqual).
partialEqualsfunctionpartialEquals(actual: unknown, expected: unknown): boolean.
matchersconstThe matcher implementations behind expect.
isAssertionErrorfunctionisAssertionError(value: unknown): value is errors.E_HELIX_ASSERTION_FAILED.
withViContextfunctionwithViContext<T>(body: () => Promise<T>): Promise<T>: runs body under its own vi state.
runTestFilefunctionAs in @c9up/helix/runtime/worker.
AssertionErrorInit, Constructor, EqualsOptions, Getter, SpyLike, SerializedError, RunMode, SuiteNode, TestNode, TestFn, CreateSpyOptions, MockCallResult, MockInternals, SpyOnOptions, RunFileOptionstypeTheir supporting types.

@c9up/helix/runtime/worker ​

ts
function runTestFile(absolutePath: string, options?: RunFileOptions): Promise<FileResult>

RunFileOptions extends ExecuteOptions (timeoutMs, retries, grep, tags, matchAll, tests, groups, suite, bail, bailLayer, allowOnly) with freshImport?: boolean (bust the module cache) and defaultTimeoutMs?: number.

@c9up/helix/container ​

ExportKindSignature
useContainerfunctionuseContainer(container: HelixContainer): void: binds the container override() acts on.
overridefunctionoverride(token: ContainerToken, value: unknown): void: overrides a binding on the active container. After the test, the token resolves as it did before the call: through the swap that was in place (a fake the file installed in beforeAll, an outer override()), or through its binding.
overrideOnfunctionoverrideOn(container: HelixContainer, token: ContainerToken, value: unknown): void.
clearActiveContainerfunctionclearActiveContainer(): void.
spyfunctionspy<Fn>(implementation?: Fn): Spy<Fn>: vi.fn.
HelixContainerinterfaceoverride(token, value): void and restore(token): void. Optional: swapped(token): unknown and swap(token, factory): void. With both, the end-of-test cleanup puts the previous swap back; without them it calls restore(token), which removes every swap of the token. @c9up/ream's Container has both from the release that adds swapped().
ContainerLike, ContainerTokentypeContainerToken is a class, a string or a symbol.

@c9up/helix/time ​

ExportKindSignature
freezefunctionfreeze(input: TimeInput): void: pins Date.now() and new Date().
travelfunctiontravel(amount: number, unit?: TimeUnit): void: advances the clock.
travelTofunctiontravelTo(target: TimeInput): void: same as freeze(target).
unfreezefunctionunfreeze(): void: restores the real clock.
frozenAtfunctionfrozenAt(): number | null: the frozen epoch, or null.
TimeUnittype"ms" | "second" | "minute" | "hour" | "day" | "week" | "month" | "year".

TimeInput is string | number | Date | { toMillis(): number }.

@c9up/helix/runner ​

ExportKindDescription
runfunctionrun(config: RunConfig): Promise<RunOutcome>: one run over discovered or given files.
runSuitesfunctionrunSuites(suites: readonly SuiteRun[], base: RunConfig): Promise<RunOutcome>: suites one after another.
noTestFilesfunctionnoTestFiles(passWithNoTests: boolean, detail?: string): RunOutcome.
discoverfunctiondiscover(root: string, options?: DiscoveryOptions): Promise<string[]>: finds test files.
filterByFileFiltersfunctionfilterByFileFilters(files: readonly string[], filters: readonly string[] | undefined): string[]: the --files rule.
loadHelixConfigfunctionloadHelixConfig(root: string): Promise<HelixConfig>: helix.config.*, or {}.
resolveSuiteFilesfunctionresolveSuiteFiles(suite: SuiteDefinition, root: string, discovery: DiscoveryOptions | undefined): Promise<string[]>.
selectSuitesfunctionselectSuites(config: HelixConfig, positionals: string[]): SuiteDefinition[] | undefined.
resolveBootstrapfunctionresolveBootstrap(root: string, configured?: string): string | undefined.
BOOTSTRAP_FILENAMESconsttests/bootstrap.ts, tests/bootstrap.js, tests/bootstrap.mjs.
runGlobalHooksfunctionrunGlobalHooks(bootstrap: string | undefined): Promise<() => Promise<void>>: runs runnerHooks.setup once and returns the teardown.
readFailedCachefunctionreadFailedCache(root: string): Promise<string[]>: titles that failed last run.
makeReportersfunctionmakeReporters(names: readonly string[] | undefined, useColors: boolean): Reporter.
makeReportersFromfunctionmakeReportersFrom(reporters: readonly Reporter[]): Reporter.
armDrainGuardfunctionarmDrainGuard(code: number, write?: (message: string) => void): void: reports what keeps a finished run alive.
DRAIN_GRACE_MSconst2000.
encodeEnvListfunctionencodeEnvList(values: readonly string[]): string: encodes a list for the workers' environment.
RunConfig, RunOutcome, SuiteRun, WatchOptionstypeRun input and output.
HelixConfig, SuiteDefinition, SuiteFilestypeThe config file shape.
Reporter, SummarytypeonFileStart, onFileResult, onFileError, onSummary; the run totals.

test and TestHandle ​

ts
test(name: string, fn?: TestFn, options?: TestOptions | number): TestHandle
type TestFn = (ctx: TestContext, done: DoneFn) => unknown

A test without fn is a todo.

MemberSignatureDescription
test.skipskip(name: string, fn?: TestFn): void
test.onlyonly(name: string, fn: TestFn, options?): TestHandle
test.todotodo(name: string): void
test.eacheach(rows)(name, fn: (row) => unknown): voidOne test per row.
test.groupgroup(name: string, fn: (group: Group) => void): GroupA group with setup, teardown, each.{setup,teardown,timeout,disableTimeout,retry}, tap.
test.macromacro(callback: (test: TestInstance, ...args) => R): (...args) => RA resource macro.
.retryretry(n: number): TestHandle
.timeout / .disableTimeouttimeout(ms: number): TestHandle
.tagstags(tags: string | string[], strategy?: "replace" | "append" | "prepend"): TestHandle
.failsfails(reason?: string): TestHandleThe test is expected to throw.
.setup / .teardownsetup(fn: HookFn): TestHandleHooks for this test only.
.pinpin(): TestHandleWhen any test is pinned, only pinned tests run.
.skipskip(condition?: boolean | (() => boolean | Promise<boolean>), reason?: string): TestHandle
.waitForDonewaitForDone(): TestHandleCompletes once the body calls done().
.withwith<Row>(rows: DatasetSource<Row>): DatasetHandle<Row>A dataset; .run((ctx, row) => …) gives the body.

expect ​

Matchers, each available under .not, .resolves and .rejects: toBe, toEqual, toStrictEqual, toMatchObject, toBeDefined, toBeUndefined, toBeNull, toBeNaN, toBeTruthy, toBeFalsy, toBeGreaterThan, toBeGreaterThanOrEqual, toBeLessThan, toBeLessThanOrEqual, toBeCloseTo, toBeInstanceOf, toContain, toHaveLength, toHaveProperty, toMatch, toThrow, toHaveBeenCalled, toHaveBeenCalledOnce, toHaveBeenCalledTimes, toHaveBeenCalledWith, toHaveBeenLastCalledWith, toHaveBeenNthCalledWith.

Static members: objectContaining, arrayContaining, stringContaining, stringMatching, any, anything, assertions(n), hasAssertions().

Assert ​

ctx.assert methods: plan, fail, ok, notOk, isOk, isNotOk, equal, notEqual, strictEqual, notStrictEqual, deepEqual, notDeepEqual, exists, notExists, isTrue, isNotTrue, isFalse, isNotFalse, isNull, isNotNull, isUndefined, isDefined, isNaN, isNotNaN, isFinite, isString, isNotString, isNumber, isNotNumber, isBoolean, isNotBoolean, isFunction, isNotFunction, isObject, isNotObject, isArray, isNotArray, typeOf, notTypeOf, instanceOf, notInstanceOf, isAbove, isAtLeast, isBelow, isAtMost, closeTo, approximately, oneOf, match, notMatch, include, notInclude, deepInclude, notDeepInclude, lengthOf, notLengthOf, empty, notEmpty, isEmpty, isNotEmpty, property, notProperty, propertyVal, notPropertyVal, deepPropertyVal, notDeepPropertyVal, properties, anyProperties, onlyProperties, notAllProperties, notAnyProperties, containsSubset, containSubset, notContainsSubset, doesNotContainSubset, sameMembers, notSameMembers, sameDeepMembers, notSameDeepMembers, sameOrderedMembers, notSameOrderedMembers, sameDeepOrderedMembers, notSameDeepOrderedMembers, includeMembers, notIncludeMembers, includeDeepMembers, notIncludeDeepMembers, includeOrderedMembers, notIncludeOrderedMembers, includeDeepOrderedMembers, notIncludeDeepOrderedMembers, frozen, notFrozen, isFrozen, isNotFrozen, sealed, notSealed, isSealed, isNotSealed, throws, doesNotThrow, doesNotThrows, rejects, doesNotReject, doesNotRejects.

vi ​

MemberSignatureDescription
fnfn<Fn>(implementation?: Fn): Spy<Fn>A mock function.
spyOnspyOn(obj, key, options?: { accessor?: "get" | "set" }): SpyReplaces obj[key] with a spy that calls through.
isMockFunction(value: unknown) => value is Spy
clearAllMocks / resetAllMocks / restoreAllMocks(): typeof vi
useFakeTimersuseFakeTimers(options?: { now?: number | Date }): typeof vi
useRealTimers(): typeof vi
advanceTimersByTime(ms: number): typeof vi
runAllTimers / runOnlyPendingTimers / clearAllTimers(): typeof vi
getTimerCount(): number
setSystemTime(time: Date | number) => typeof vi
getMockedSystemTime() => number | null
useRealSystemTime() => typeof viClears the pinned system time.

A Spy records mock.calls, mock.results, mock.lastCall, calls and callCount, and has mockImplementation, mockImplementationOnce, mockReturnValue, mockReturnValueOnce, mockResolvedValue, mockResolvedValueOnce, mockRejectedValue, mockRejectedValueOnce, mockClear, mockReset, mockRestore.

PluginApi ​

ts
type Plugin = (api: PluginApi) => unknown
MemberTypeDescription
configConfigureOptionsThe options of this run; a plugin may edit them.
cliArgsCLIArgsThe flags the CLI forwarded to this worker.
runnerRunnerRun-level state and summary.
emitterEmitterLifecycle events (test:start, group:end, …).
contextPluginContextmacro(name, value) and getter(name, fn): extend the test context.
cleanupcleanup(fn: RunnerHook): voidA teardown run once after all tests.

Configuration ​

helix.config.ts (or .js, .mjs) at the project root:

OptionTypeDefaultDescription
suitesSuiteDefinition[]Named suites; helix test <name> selects one.
bootstrapstringthe first of BOOTSTRAP_FILENAMES that existsPath to the bootstrap module.
timeoutnumber60000Default per-test timeout in ms.
fileTimeoutnumber600000How long one file may run before its worker is killed, in ms.
forceExitbooleanfalseprocess.exit() once the run ends.
allowOnlybooleannot under CIWhether .only / .pin() may narrow the run.
passWithNoTestsbooleanfalseExits 0 when nothing is found to run.

SuiteDefinition: name: string, files: string | string[] | (() => URL[] | Promise<URL[]>), timeout?: number, retries?: number, configure?: (suite: SuiteHandle) => void.

The bootstrap module (tests/bootstrap.ts) may export plugins: Plugin[], runnerHooks: { setup?: RunnerHook[]; teardown?: RunnerHook[] } (run once for the whole run, in the CLI process), configureSuite(suite: SuiteHandle), filters: ConfigureFilters and importer: (file: URL) => unknown.

ConfigureOptions, passed to configure() or edited by a plugin through api.config:

OptionTypeDescription
pluginsPlugin[]Plugins to install.
configureSuite(suite: SuiteHandle) => unknownConfigures the suite before it runs.
setup / teardownRunnerHook[]Run once before / after the tests.
timeoutnumberDefault per-test timeout of this file's tests, in ms.
retriesnumberDefault extra attempts on failure.
filtersConfigureFiltersfiles, suites, tags, groups, tests, matchAll.
importer(file: URL) => unknownHow a test file is imported.
forceExitboolean
suitestringThe suite these tests belong to.
cwd, reporters, exclude, refinerFilled in by the runner.

Errors ​

Each code is a class of the errors namespace and a @c9up/flare Exception with status 500: branch on error.code or on error instanceof errors.E_HELIX_*.

CodeRaised when
E_HELIX_ASSERTION_FAILEDAn expect() or assert check failed; carries actual, expected, operator, showDiff, and keeps the name AssertionError that reporters recognise.
E_HELIX_TIMEOUTA test or hook did not settle within its timeout. Also the code of the file error for a file that ran past --file-timeout.
E_HELIX_TEST_ABORTEDThe running test called meta.abort(message).
E_HELIX_UNEXPECTED_ONLYNot thrown: the code of the error of a test that a .only or a .pin() selects in a run that does not allow them (under CI, or with --allow-only=false).
E_HELIX_NO_TEST_SUITEThe code of the file error for a file that declares no test, unless --pass-with-no-tests is set.
E_HELIX_NO_ACTIVE_TESTA test-only helper (getActiveTestOrFail(), time.freeze/travel, override(), a test.macro function) was called outside a running test.
E_HELIX_NO_ACTIVE_CONTAINERoverride() was called before useContainer().
E_HELIX_ASYNC_DESCRIBEA describe body returned a Promise; await the setup in beforeAll instead.
E_HELIX_NESTED_GROUPA test.group() was declared inside another group.
E_HELIX_INVALID_TIMEA time value cannot be used: a non-finite or out-of-range epoch, an unreadable date, a fractional month or year, an unknown unit, or a negative advanceTimersByTime.
E_HELIX_FAKE_TIMERS_NOT_INSTALLEDA vi timer control was called before vi.useFakeTimers().
E_HELIX_TIMER_LOOPDraining fake timers exceeded its iteration cap: a timer keeps rescheduling itself.
E_HELIX_SPY_NO_PROPERTYvi.spyOn() targets a property the object does not have.
E_HELIX_SPY_NOT_FUNCTIONvi.spyOn() targets a value that is not a function; pass { accessor } for a getter or setter.
E_HELIX_SPY_NO_ACCESSORvi.spyOn() asked for a getter or setter the property does not define.
E_HELIX_ALREADY_SPIEDvi.spyOn() targets a method that is already a spy; call mockRestore() first.
E_HELIX_RUNNER_NOT_DRIVABLEA plugin called runner.add/start/exec/end(): the CLI owns discovery and execution.
E_HELIX_RELATIVE_PATHrunTestFile() was given a relative path.
E_HELIX_INVALID_GLOBAn include or exclude glob has an unclosed {, ( or [; cause holds the regex error.
E_HELIX_INVALID_THREADSThe thread count is not a finite number.
E_HELIX_INVALID_COVERAGE_THRESHOLDA coverage threshold is not a number from 0 to 100, or a diff-coverage threshold names functions or branches (diff coverage is line-only).
E_HELIX_INVALID_DIFF_COVERAGEDiff coverage is enabled without coverage, or its cwd and coverage.root are disjoint.
E_HELIX_INVALID_WATCH_OPTIONSWatch mode got an empty include or a debounceMs out of range.
E_HELIX_WATCH_FAILEDWatch mode could not watch its root directory; cause holds the fs.watch error.
E_HELIX_WORKER_FAILEDNot thrown: the code of a file error when the worker could not start, sent a broken frame, exited without a result, or exited in a way its result does not explain.
E_HELIX_NATIVE_REQUIREDThe helix native binary is missing, failed to load, or is stale, or the platform has none.
E_HELIX_INTERNALAn internal invariant of helix broke: a bug in helix, worth reporting. The native engine's refusals arrive under this code.

Migration ​

  • HelixError is gone: test error.code, or error instanceof errors.E_HELIX_* with import { errors } from '@c9up/helix'.
  • AssertionError becomes errors.E_HELIX_ASSERTION_FAILED, with the same fields; error.name is still 'AssertionError', and isAssertionError() is unchanged.
  • RunnerNotDrivableError becomes errors.E_HELIX_RUNNER_NOT_DRIVABLE.

See also ​