Skip to content

[CLEANUP] Remove the ember-cli-qunit tests #20880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions blueprints/acceptance-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ const stringUtils = require('ember-cli-string-utils');

const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
const { modulePrefixForProject } = require('../-utils');
const useTestFrameworkDetector = require('../test-framework-detector');

module.exports = useTestFrameworkDetector({
module.exports = {
description: 'Generates an acceptance test for a feature.',

shouldTransformTypeScript: true,
Expand Down Expand Up @@ -42,4 +41,4 @@ module.exports = useTestFrameworkDetector({
destroyAppExists,
};
},
});
};

This file was deleted.

5 changes: 2 additions & 3 deletions blueprints/component-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ const semver = require('semver');

const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
const { modulePrefixForProject } = require('../-utils');
const useTestFrameworkDetector = require('../test-framework-detector');

function invocationFor(options) {
let parts = options.entity.name.split('/');
return parts.map((p) => stringUtil.classify(p)).join('::');
}

module.exports = useTestFrameworkDetector({
module.exports = {
description: 'Generates a component integration or unit test.',

shouldTransformTypeScript: true,
Expand Down Expand Up @@ -118,4 +117,4 @@ module.exports = useTestFrameworkDetector({
]);
}
},
});
};

This file was deleted.

5 changes: 2 additions & 3 deletions blueprints/controller-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

const stringUtil = require('ember-cli-string-utils');

const useTestFrameworkDetector = require('../test-framework-detector');
const path = require('path');

const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
const { modulePrefixForProject } = require('../-utils');

module.exports = useTestFrameworkDetector({
module.exports = {
description: 'Generates a controller unit test.',

shouldTransformTypeScript: true,
Expand Down Expand Up @@ -44,4 +43,4 @@ module.exports = useTestFrameworkDetector({
},
};
},
});
};

This file was deleted.

6 changes: 2 additions & 4 deletions blueprints/helper-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ const semver = require('semver');
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
const { modulePrefixForProject } = require('../-utils');

const useTestFrameworkDetector = require('../test-framework-detector');

module.exports = useTestFrameworkDetector({
module.exports = {
description: 'Generates a helper integration test.',

shouldTransformTypeScript: true,
Expand Down Expand Up @@ -64,4 +62,4 @@ module.exports = useTestFrameworkDetector({
]);
}
},
});
};

This file was deleted.

5 changes: 2 additions & 3 deletions blueprints/initializer-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ const path = require('path');

const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
const { modulePrefixForProject } = require('../-utils');
const useTestFrameworkDetector = require('../test-framework-detector');

module.exports = useTestFrameworkDetector({
module.exports = {
description: 'Generates an initializer unit test.',

shouldTransformTypeScript: true,
Expand Down Expand Up @@ -37,4 +36,4 @@ module.exports = useTestFrameworkDetector({
),
};
},
});
};

This file was deleted.

5 changes: 2 additions & 3 deletions blueprints/instance-initializer-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ const path = require('path');

const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
const { modulePrefixForProject } = require('../-utils');
const useTestFrameworkDetector = require('../test-framework-detector');

module.exports = useTestFrameworkDetector({
module.exports = {
description: 'Generates an instance initializer unit test.',

shouldTransformTypeScript: true,
Expand Down Expand Up @@ -36,4 +35,4 @@ module.exports = useTestFrameworkDetector({
),
};
},
});
};

This file was deleted.

6 changes: 2 additions & 4 deletions blueprints/mixin-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

const path = require('path');

const useTestFrameworkDetector = require('../test-framework-detector');

module.exports = useTestFrameworkDetector({
module.exports = {
description: 'Generates a mixin unit test.',

fileMapTokens() {
Expand All @@ -24,4 +22,4 @@ module.exports = useTestFrameworkDetector({
friendlyTestName: ['Unit', 'Mixin', options.entity.name].join(' | '),
};
},
});
};

This file was deleted.

5 changes: 2 additions & 3 deletions blueprints/route-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
const path = require('path');
const stringUtil = require('ember-cli-string-utils');

const useTestFrameworkDetector = require('../test-framework-detector');
const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
const { modulePrefixForProject } = require('../-utils');

module.exports = useTestFrameworkDetector({
module.exports = {
description: 'Generates a route unit test.',

shouldTransformTypeScript: true,
Expand Down Expand Up @@ -63,4 +62,4 @@ module.exports = useTestFrameworkDetector({
moduleName: stringUtil.dasherize(moduleName),
};
},
});
};

This file was deleted.

5 changes: 2 additions & 3 deletions blueprints/service-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
const { modulePrefixForProject } = require('../-utils');
const useTestFrameworkDetector = require('../test-framework-detector');

module.exports = useTestFrameworkDetector({
module.exports = {
description: 'Generates a service unit test.',

shouldTransformTypeScript: true,
Expand All @@ -31,4 +30,4 @@ module.exports = useTestFrameworkDetector({
friendlyTestDescription: ['Unit', 'Service', options.entity.name].join(' | '),
};
},
});
};

This file was deleted.

38 changes: 0 additions & 38 deletions blueprints/test-framework-detector.js

This file was deleted.

5 changes: 2 additions & 3 deletions blueprints/util-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ const path = require('path');

const typescriptBlueprintPolyfill = require('ember-cli-typescript-blueprint-polyfill');
const { modulePrefixForProject } = require('../-utils');
const useTestFrameworkDetector = require('../test-framework-detector');

module.exports = useTestFrameworkDetector({
module.exports = {
description: 'Generates a util unit test.',

shouldTransformTypeScript: true,
Expand All @@ -33,4 +32,4 @@ module.exports = useTestFrameworkDetector({
modulePrefix: modulePrefixForProject(options.project),
};
},
});
};

This file was deleted.

Loading