Skip to content

Commit

Permalink
Merge pull request #238 from soxhub/prepare-for-proving-the-migration…
Browse files Browse the repository at this point in the history
…-path

Prepare for sharing tests between all the apps
  • Loading branch information
NullVoxPopuli authored Jun 14, 2024
2 parents 5bd9470 + 7be1e97 commit bc32b08
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 72 deletions.
42 changes: 0 additions & 42 deletions test-apps/classic-app/tests/helpers/index.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';
import ComponentAtClass from 'v2-addon-ts/components/at-class-ts/component-at-class';

import { scopedClass } from 'ember-scoped-css/test-support';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render } from '@ember/test-helpers';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';
import { StrictClass } from 'v2-addon-ts/components/strict-class';

import { scopedClass } from 'ember-scoped-css/test-support';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { render } from '@ember/test-helpers';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';
import { Strict } from 'v2-addon-ts/components/strict';

import { scopedClass } from 'ember-scoped-css/test-support';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, test } from 'qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';
import { setupRenderingTest } from 'ember-qunit';

import { scopedClass } from 'ember-scoped-css/test-support';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, test } from 'qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';
import { setupRenderingTest } from 'ember-qunit';

import { scopedClass } from 'ember-scoped-css/test-support';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';
import ComponentAtClass from 'v2-addon/components/at-class/component-at-class';

import { scopedClass } from 'ember-scoped-css/test-support';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';

import ComponentAtClass from 'classic-app/components/component-at-class';
import { setupRenderingTest } from 'classic-app/tests/helpers';

import { scopedClass } from 'ember-scoped-css/test-support';


module('Integration | Component | @class', function (hooks) {
module('[In App] @class', function (hooks) {
setupRenderingTest(hooks);

test('strict mode', async function (assert) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { tracked } from '@glimmer/tracking';
import { render, settled } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';

module('Integration | Component | DynamicAttribute', function (hooks) {
module('[In App] DynamicAttribute', function (hooks) {
setupRenderingTest(hooks);

test('it has scoped class', async function (assert) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, test } from 'qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';
import { setupRenderingTest } from 'ember-qunit';

import { scopedClass } from 'ember-scoped-css/test-support';

module('Integration | Component | header', function (hooks) {
module('[In App] header', function (hooks) {
setupRenderingTest(hooks);

test('it has scoped class', async function (assert) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, skip } from 'qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';
import { setupRenderingTest } from 'ember-qunit';

module('[In App] Misuse', function (hooks) {
setupRenderingTest(hooks);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';

module('Integration | Component | scoped', function (hooks) {
module('[In App] scoped', function (hooks) {
setupRenderingTest(hooks);

test('it replaces the scoped-class helper', async function (assert) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';

module('Integration | Component | show-time', function (hooks) {
module('[In App] show-time', function (hooks) {
setupRenderingTest(hooks);

test('it has scoped class', async function (assert) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { render, settled } from '@ember/test-helpers';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';

import SubExpression from 'classic-app/components/subexpression';
import { setupRenderingTest } from 'classic-app/tests/helpers';
import { cell } from 'ember-resources';

import { scopedClass } from 'ember-scoped-css/test-support';

module('Integration | Component | subexpression', function (hooks) {
module('[In App] subexpression', function (hooks) {
setupRenderingTest(hooks);

test('it has scoped class', async function (assert) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
import { module, test } from 'qunit';

import { setupRenderingTest } from 'classic-app/tests/helpers';
import { setupRenderingTest } from 'ember-qunit';

import { scopedClass } from 'ember-scoped-css/test-support';

module('Integration | Component | template-only', function (hooks) {
module('[In App] template-only', function (hooks) {
setupRenderingTest(hooks);

test('it has scoped class', async function (assert) {
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { visit } from '@ember/test-helpers';
import { module, test } from 'qunit';

import { setupApplicationTest } from 'pods-classic-app/tests/helpers';
import { setupApplicationTest } from 'ember-qunit';

import { scopedClass } from 'ember-scoped-css/test-support';

Expand Down

0 comments on commit bc32b08

Please sign in to comment.