How to use the ember-test-helpers.TestModule function in ember-test-helpers

To help you get started, we’ve selected a few ember-test-helpers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / ember-test-helpers / ember-test-helpers-tests.ts View on Github external
function moduleFor(name: string, description: string, callbacks: ModuleCallbacks) {
    const module = new TestModule(name, description, callbacks);

    QUnit.module(module.name, {
        beforeEach() {
            module.setup();
        },
        afterEach() {
            module.teardown();
        }
    });
}