From cc7a04afdc70fffa2aa5c140cdafbeb6da7ea97d Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Fri, 14 Jan 2022 10:12:08 +0800 Subject: [PATCH] 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. --- app/assets/javascripts/discourse/ember-cli-build.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/assets/javascripts/discourse/ember-cli-build.js b/app/assets/javascripts/discourse/ember-cli-build.js index e6a01988ad4..18b770d9775 100644 --- a/app/assets/javascripts/discourse/ember-cli-build.js +++ b/app/assets/javascripts/discourse/ember-cli-build.js @@ -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",