h

    Hexa

    2 years ago
    when should one use shouldspec vs behaviourspec vs stringspec when unit testing? there’s so many different types its quite confusing
    wasyl

    wasyl

    2 years ago
    Pick that which suits you best 🙂
    As far as I know there’s no functional difference between them, they’re just aliases essentially
    m

    Mike

    2 years ago
    Exactly. It's a matter of choosing the style that best fits either your team's preferences, or perhaps the test being written.
    sam

    sam

    2 years ago
    It’s nice to jump about between then based on the type of test as @Mike says or just make a rule that your team stick to one in particular.