API Reference | fast-check | Property based testing framework
    Preparing search index...

    Type Alias EntityGraphArbitraries<TEntityFields>

    EntityGraphArbitraries: {
        [TEntityName in keyof TEntityFields]: ArbitraryStructure<
            TEntityFields[TEntityName],
        >
    }

    Defines all entity types and their data fields for entityGraph.

    This is the first argument to entityGraph and specifies the non-relational properties of each entity type. Each key is the name of an entity type and its value defines the arbitraries for that entity.

    Type Parameters

    • TEntityFields
    {
    employee: { name: fc.string(), age: fc.nat(100) },
    team: { name: fc.string(), size: fc.nat(50) }
    }

    Since 4.5.0