SuperAPI AI Directory

effect-arbitrary

Testing & quality

View repository

Updated 10-16 05:39

About this skill

Effect Arbitrary

Generate values from an Effect Schema.

import { Schema } from "effect"
import { FastCheck } from "effect/testing"

const samples = FastCheck.sample(Schema.toArbitrary(schema)(FastCheck), 10)

Default-export the schema from a module. Run the CLI:

andrue-cli generate <schema-module> --count 10