@ember/test-helpers
Version:
Helpers for testing Ember.js applications
21 lines (18 loc) • 817 B
TypeScript
import type { TestContext } from './setup-context';
export interface TeardownContextOptions {
waitForSettled?: boolean | undefined;
}
/**
Used by test framework addons to tear down the provided context after testing is completed.
Responsible for:
- un-setting the "global testing context" (`unsetContext`)
- destroy the contexts owner object
- remove AJAX listeners
@public
@param {Object} context the context to setup
@param {Object} [options] options used to override defaults
@param {boolean} [options.waitForSettled=true] should the teardown wait for `settled()`ness
@returns {Promise<void>} resolves when settled
*/
export default function teardownContext(context: TestContext, { waitForSettled }?: TeardownContextOptions): Promise<void>;
//# sourceMappingURL=teardown-context.d.ts.map