Skip to content

Commit

Permalink
task(test metadata): Adding framework specific metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
scalvert committed Oct 29, 2019
1 parent cfad079 commit d367be8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addon-test-support/ember-qunit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export { loadTests } from './test-loader';

import { run } from '@ember/runloop';
import { assign } from '@ember/polyfills';
import { resetOnerror } from '@ember/test-helpers';
import { resetOnerror, getTestMetadata } from '@ember/test-helpers';
import { loadTests } from './test-loader';
import Ember from 'ember';
import QUnit from 'qunit';
Expand All @@ -29,6 +29,9 @@ export function setupTest(hooks, _options) {
let options = _options === undefined ? { waitForSettled } : assign({ waitForSettled }, _options);

hooks.beforeEach(function(assert) {
let testMetadata = getTestMetadata(this);
testMetadata.framework = 'qunit';

return setupContext(this, options).then(() => {
let originalPauseTest = this.pauseTest;
this.pauseTest = function QUnit_pauseTest() {
Expand Down

0 comments on commit d367be8

Please sign in to comment.