Skip to main content
Home
This release is 2 versions behind 0.0.22 — the latest version of @alator21/jobless-machine. Jump to latest

Test framework

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a week ago (0.0.20)
c
AbstractSimpleValue

Base class for value wrappers that hold simple, static values. Provides a common implementation for storing and accessing wrapped values.

c
AllCopy

A copy strategy that copies all step outputs to the context with a prefix. This is the most common copy strategy, automatically adding a namespace to outputs.

c
Assertion

Base class for all assertions in the test framework.

c
AssertionFactory

Factory for creating multiple assertion instances from a template. Useful for repeating assertions or generating dynamic assertion collections.

c
AsyncProviderValueWrapper
No documentation available
c
CompositeCopy

A copy strategy that combines multiple copy strategies. Executes each strategy in sequence, allowing complex copy patterns.

c
Context

Type-safe key-value store for sharing data between test steps. Stores value wrappers which can be resolved later during test execution.

c
ContextAssertion

An assertion that compares two value wrappers for equality or inequality. Uses strict equality (===) for comparison.

c
ContextSchema

Type-safe context schema that provides utilities for creating runners, value wrappers, and copy strategies with full TypeScript type inference.

c
ContextValueWrapper

A value wrapper that references a value stored in the test context. The actual value is resolved at extraction time using VExtractor.

c
Copy

Base class for copy strategies that control how step outputs are copied to context. Provides filtering and key mapping functionality for data transfer.

f
createTypedSchema

Create a typed context schema using type-only parameters This is the preferred way to create typed schemas as it provides:

c
DummyValueWrapper

Placeholder value wrapper that holds undefined. Used as a default or temporary value in scenarios where a real value isn't available yet.

T
GetNestedType

Type helper to get the type of a property at a given path in an object. Handles both object properties and array indices.

I
Gettable

Interface that adds fluent .get() method to ValueWrappers. This is provided as a separate interface to avoid variance issues with the base ValueWrapper class.

c
HttpAssertion

An assertion that validates HTTP responses stored in the context. Checks whether an HTTP request succeeded (2xx status) or failed (non-2xx status).

c
HttpExceptionAssertion

Validates HTTP error responses with expected status codes and exception messages. Used to verify that API endpoints return proper error responses.

T
HttpFields

Type definition for HTTP response and error fields stored in context. Used to standardize HTTP-related data structures across the framework.

c
HttpRequestStep

Base class for HTTP request steps. Provides common functionality for making HTTP calls and storing responses/errors.

f
makeGettable

Makes a ValueWrapper "gettable" by adding a fluent .get() method via Proxy. This allows for chainable nested property access without modifying the base ValueWrapper class.

c
NestedValueWrapper

A value wrapper that extracts a nested property from another value wrapper. This enables accessing nested values in a type-safe, deferred way.

T
Prefixed

Create a schema with a helper for defining common field types This reduces repetition when defining similar prefixed contexts

c
PrintStep

A step that prints a message to the console. Useful for debugging and logging during test execution.

c
Runner

Main test orchestrator that executes steps and assertions sequentially. Provides a fluent API for building complex test scenarios with type-safe context management.

c
SimpleCopy

A copy strategy that maps specific fields from step outputs to context keys. Can either use explicit mappings or copy all fields as-is.

c
SimpleValueWrapper

A value wrapper that holds a static value. The value is provided at construction time and never changes.

c
StepFactory

Factory for creating multiple step instances from a template. Useful for repeating steps or generating dynamic step collections.

c
Timeline

Manages the execution order of steps and assertions in a test scenario. Timeline maintains an ordered collection of steps, assertions, and their factories.

c
ValueWrapper

Base class for all value wrappers in the framework. Value wrappers provide a flexible abstraction for representing values that may be static, context-referenced, or computed. They enable deferred value resolution and type-safe value handling.

c
ValueWrapperFormatter

Utility class for formatting values in a human-readable way. Handles deep printing of objects, arrays, and other complex types.

c
VExtractor

Extracts actual values from value wrappers.

c
WaitStep

A step that pauses execution for a specified duration. Useful for waiting for async operations, delays between API calls, or simulating timing scenarios.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.