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

    Interface LoremConstraints

    Constraints to be applied on lorem

    Since 2.5.0

    interface LoremConstraints {
        maxCount?: number;
        mode?: "words" | "sentences";
        size?: SizeForArbitrary;
    }
    Index

    Properties

    Properties

    maxCount?: number

    Maximal number of entities:

    • maximal number of words in case mode is 'words'
    • maximal number of sentences in case mode is 'sentences'

    0x7fffffff — defaulting seen as "max non specified" when defaultSizeToMaxWhenMaxSpecified=true

    Since 2.5.0

    mode?: "words" | "sentences"

    Type of strings that should be produced by lorem:

    • words: multiple words
    • sentences: multiple sentences
    'words'
    

    Since 2.5.0

    Define how large the generated values should be (at max)

    Since 2.22.0