From db42a7fb1d37fa1196759b4f6b12e39f612fae5c Mon Sep 17 00:00:00 2001 From: Christian Budde Christensen Date: Mon, 7 Mar 2016 19:50:27 +0100 Subject: [PATCH] fix(files): Ignore included:false pattern Define specificity of patterns. Let most specific pattern decide to include files or not. Closes #1530 --- docs/config/02-files.md | 11 +++ lib/config.js | 5 + lib/file-list.js | 40 +++++--- lib/helper.js | 62 ++++++++++++ test/e2e/files.feature | 153 ++++++++++++++++++++++++++++++ test/e2e/support/files/log_foo.js | 2 + test/e2e/support/files/test.js | 5 + test/unit/helper.spec.js | 88 ++++++++++++++--- 8 files changed, 338 insertions(+), 28 deletions(-) create mode 100644 test/e2e/files.feature create mode 100644 test/e2e/support/files/log_foo.js create mode 100644 test/e2e/support/files/test.js diff --git a/docs/config/02-files.md b/docs/config/02-files.md index aa9f93f1f..f8cfe8cdc 100644 --- a/docs/config/02-files.md +++ b/docs/config/02-files.md @@ -35,6 +35,17 @@ Each pattern is either a simple string or an object with four properties: * **Description.** Should the files be included in the browser using `