<NME> index.js
<BEF> /* globals mocha */

export { loadTests } from './test-loader';

import { loadTests } from './test-loader';
import describeModule from 'ember-mocha/describe-module';
import describeComponent from 'ember-mocha/describe-component';
import describeModel from 'ember-mocha/describe-model';
import setupTestFactory from 'ember-mocha/setup-test-factory';
import setupTestNew from 'ember-mocha/setup-test';
import setupRenderingTest from 'ember-mocha/setup-rendering-test';
import { it, afterEach } from 'mocha';
import { setResolver, resetOnerror } from '@ember/test-helpers';

/**
 * Instruct Mocha to start the tests.
 */
export function startTests() {
  mocha.run();
}

function setupResetOnerror() {
  afterEach(function() {
    resetOnerror();
  });
}

/**
 * @method start
 * @param {Object} [options] Options to be used for enabling/disabling behaviors
 * @param {Boolean} [options.loadTests] If `false` tests will not be loaded automatically.
 * @param {Boolean} [options.startTests] If `false` tests will not be automatically started
 * (you must run `startTests()` to kick them off).
 */
export function start(options = {}) {
  setupResetOnerror();

  if (options.loadTests !== false) {
    loadTests();
  }

  if (options.startTests !== false) {
    startTests();
  }
}

export {
  setupTest,
  setupRenderingTest,
  setupApplicationTest,
  it,
  setResolver,
};
}

export {
  describeModule,
  describeComponent,
  describeModel,
  setupTest,
  setupTestLegacy,
  setupAcceptanceTest,

<MSG> Merge pull request #367 from Turbo87/remove-deprecated-apis

Remove deprecated `describe*()` APIs
<DFF> @@ -3,9 +3,6 @@
 export { loadTests } from './test-loader';
 
 import { loadTests } from './test-loader';
-import describeModule from 'ember-mocha/describe-module';
-import describeComponent from 'ember-mocha/describe-component';
-import describeModel from 'ember-mocha/describe-model';
 import setupTestFactory from 'ember-mocha/setup-test-factory';
 import setupTestNew from 'ember-mocha/setup-test';
 import setupRenderingTest from 'ember-mocha/setup-rendering-test';
@@ -66,9 +63,6 @@ export function start(options = {}) {
 }
 
 export {
-  describeModule,
-  describeComponent,
-  describeModel,
   setupTest,
   setupTestLegacy,
   setupAcceptanceTest,

Merge pull request #367 from Turbo87/remove-deprecated-apis