Tag: behaviour

  • Testing React components

    There are two aspect of testing React components: testing their structure (desired markup is displayed) and behaviour (e.g. when clicking on a button this function will be called or something different will appear in component’s markup). Testing component structure is best done with shallow rendering since it renders only provided component and not its potential…