Skip to content

Commit

Permalink
[RFC 637] Customizable test setups (#7887)
Browse files Browse the repository at this point in the history
  • Loading branch information
bertdeblock committed Feb 21, 2022
1 parent 0a6064d commit 2651e1b
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 24 deletions.
@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupTest } from 'ember-mocha';
import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';

describe('<%= friendlyTestDescription %>', function() {
setupTest();
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';

module('<%= friendlyTestDescription %>', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Adapter | application', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Adapter | foo', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupTest } from 'ember-mocha';
import { setupTest } from 'my-app/tests/helpers';

describe('Unit | Adapter | foo', function() {
setupTest();
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Adapter | foo', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupTest } from 'ember-mocha';
import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';

describe('<%= friendlyTestDescription %>', function() {
setupTest();
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';

module('<%= friendlyTestDescription %>', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Model | comment', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Model | foo', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupTest } from 'ember-mocha';
import { setupTest } from 'my-app/tests/helpers';

describe('Unit | Model | foo', function() {
setupTest();
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Model | post', function(hooks) {
setupTest(hooks);
Expand Down
2 changes: 1 addition & 1 deletion packages/model/node-tests/fixtures/model-test/rfc232.js
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Model | foo', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupTest } from 'ember-mocha';
import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';

describe('<%= friendlyTestDescription %>', function() {
setupTest();
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';

module('<%= friendlyTestDescription %>', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupTest } from 'ember-mocha';
import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';

describe('<%= friendlyTestDescription %>', function() {
setupTest();
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from '<%= dasherizedPackageName %>/tests/helpers';

module('<%= friendlyTestDescription %>', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Serializer | application', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Serializer | foo', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupTest } from 'ember-mocha';
import { setupTest } from 'my-app/tests/helpers';

describe('Unit | Serializer | foo', function() {
setupTest();
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Serializer | foo', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Transform | foo', function(hooks) {
setupTest(hooks);
Expand Down
@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';
import { setupTest } from 'ember-mocha';
import { setupTest } from 'my-app/tests/helpers';

describe('Unit | Transform | foo', function() {
setupTest();
Expand Down
@@ -1,5 +1,5 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
import { setupTest } from 'my-app/tests/helpers';

module('Unit | Transform | foo', function(hooks) {
setupTest(hooks);
Expand Down

0 comments on commit 2651e1b

Please sign in to comment.