DEV: Improve test paths pattern for Ember CLI.

Ember tests follows a convention where test files have a postfix of
`-test.js`. This ensures that any files in the tests folder which
follows this pattern is included.
This commit is contained in:
Alan Guo Xiang Tan 2022-01-14 10:12:08 +08:00
parent 65f46ad4ed
commit cc7a04afdc
1 changed files with 1 additions and 7 deletions

View File

@ -71,13 +71,7 @@ module.exports = function (defaults) {
});
let tests = concat(appTestTrees, {
inputFiles: [
"**/tests/acceptance/*.js",
"**/tests/integration/*.js",
"**/tests/integration/**/*.js",
"**/tests/unit/*.js",
"**/tests/unit/**/*.js",
],
inputFiles: ["**/tests/**/*-test.js"],
headerFiles: ["vendor/ember-cli/tests-prefix.js"],
footerFiles: ["vendor/ember-cli/app-config.js"],
outputFile: "/assets/core-tests.js",