mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
parent
65f46ad4ed
commit
cc7a04afdc
@ -71,13 +71,7 @@ module.exports = function (defaults) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let tests = concat(appTestTrees, {
|
let tests = concat(appTestTrees, {
|
||||||
inputFiles: [
|
inputFiles: ["**/tests/**/*-test.js"],
|
||||||
"**/tests/acceptance/*.js",
|
|
||||||
"**/tests/integration/*.js",
|
|
||||||
"**/tests/integration/**/*.js",
|
|
||||||
"**/tests/unit/*.js",
|
|
||||||
"**/tests/unit/**/*.js",
|
|
||||||
],
|
|
||||||
headerFiles: ["vendor/ember-cli/tests-prefix.js"],
|
headerFiles: ["vendor/ember-cli/tests-prefix.js"],
|
||||||
footerFiles: ["vendor/ember-cli/app-config.js"],
|
footerFiles: ["vendor/ember-cli/app-config.js"],
|
||||||
outputFile: "/assets/core-tests.js",
|
outputFile: "/assets/core-tests.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user