Skip to main content
Test your Forest customizations locally without connecting to Forest servers.
The testing library is available for the @forestadmin/agent Node.js agent.

Installation

Quick start

The testing library provides two main functions:
  • createForestServerSandbox(port) starts a local mock server that simulates Forest servers.
  • createAgentTestClient(options) creates a test client to interact with your agent.

Collections

Test CRUD operations and hooks.

List

Test that filters return the correct records.

Create

Update

Delete

Actions

Test actions and form behavior.

Dynamic forms

Test fields that appear based on other field values.

Field properties

Test field validation rules.

Computed fields

Segments

Charts