@tigerface/lwc-test-utils
    Preparing search index...

    @tigerface/lwc-test-utils

    LWC Test Utils

    A collection of test utilities for unit testing LWC components with Jest.

    Docs: https://edodso2.github.io/lwc-test-utils/

    Turn repetitive code like this:

    // update the inputs value
    inputEl.value = value;

    // fire change event
    const changeEvent = new CustomEvent('change');
    inputEl.dispatchEvent(changeEvent);

    Into clean declarative code like this:

    Simulate.inputChange(lightningInputEl, NEW_VALUE);
    

    Install the package:

    npm install -D @tigerface/lwc-test-utils
    

    Import the Simulate class:

    import { Simulate } from '@tigerface/lwc-test-utils';
    

    Simulate!

    Simulate.inputChange(lightningInputEl, NEW_VALUE);
    

    Contributions are welcome.