UNPKG

@tigerface/lwc-test-utils

Version:

A collection of helpful utility functions for unit testing LWC components with Jest.

17 lines 479 B
/** * A class for generic test utility methods */ export declare class TestUtils { /** * Return a promise to wait for any asynchronous DOM updates. Jest * will automatically wait for the Promise chain to complete before * ending the test and fail the test if the promise rejects. * * @example * ``` * await TestUtils.flushPromises(); * ``` */ static flushPromises(): Promise<any>; } //# sourceMappingURL=test-utils.d.ts.map