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

    Interface DateConstraints

    Constraints to be applied on date

    Since 3.3.0

    interface DateConstraints {
        max?: Date;
        min?: Date;
        noInvalidDate?: boolean;
    }
    Index

    Properties

    max?: Date

    Upper bound of the range (included)

    new Date(8640000000000000)
    

    Since 1.17.0

    min?: Date

    Lower bound of the range (included)

    new Date(-8640000000000000)
    

    Since 1.17.0

    noInvalidDate?: boolean

    When set to true, no more "Invalid Date" can be generated.

    false
    

    Since 3.13.0