UNPKG

cli-testing-library

Version:

Simple and complete CLI testing utilities that encourage good testing practices.

59 lines (58 loc) 1.9 kB
import { cleanup } from "./pure.js"; import { render } from "./pure.js"; import { configure, getConfig, runWithExpensiveErrorDiagnosticsDisabled } from "./config.js"; import { bindObjectFnsToInstance, debounce, getCurrentInstance, jestFakeTimersAreEnabled, setCurrentInstance } from "./helpers.js"; import { fireEvent } from "./events.js"; import { getQueriesForElement } from "./get-queries-for-instance.js"; import { fuzzyMatches, getDefaultNormalizer, makeNormalizer, matches } from "./matches.js"; import { buildQueries, getInstanceError, makeFindQuery, wrapSingleQueryWithSuggestion } from "./query-helpers.js"; import * as index from "./queries/index.js"; import { MutationObserver, _runObservers } from "./mutation-observer.js"; import { waitFor } from "./wait-for.js"; import { findByText, getByText, queryByText } from "./queries/text.js"; import { findByError, getByError, queryByError } from "./queries/error.js"; if (typeof process === "undefined" || // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition !(process.env && process.env.CTL_SKIP_AUTO_CLEANUP)) { if (typeof afterEach === "function") { afterEach(async () => { await cleanup(); }); } else if (typeof teardown === "function") { teardown(async () => { await cleanup(); }); } } export { MutationObserver, _runObservers, bindObjectFnsToInstance, buildQueries, cleanup, configure, debounce, findByError, findByText, fireEvent, fuzzyMatches, getByError, getByText, getConfig, getCurrentInstance, getDefaultNormalizer, getInstanceError, getQueriesForElement, jestFakeTimersAreEnabled, makeFindQuery, makeNormalizer, matches, index as queries, queryByError, queryByText, render, runWithExpensiveErrorDiagnosticsDisabled, setCurrentInstance, waitFor, wrapSingleQueryWithSuggestion }; //# sourceMappingURL=index.js.map