Mis notas - Matias Hernández

Testing Library

function matchers on testing library

The matchers can accept a function instead of a simple text like `screen.getByText()`

const triggerComponent = screen.getByText((content, node) => {
    return content === 'Hello there';
});

Links to this note