From d51a4c69ff11bf24563e5b0e4ad2c962b54e5b23 Mon Sep 17 00:00:00 2001 From: briantmorr Date: Wed, 28 Mar 2018 00:24:13 -0700 Subject: [PATCH 1/8] edited readme configuration section to make ignore patterns more visible. Also used 'ignore' and 'exclude' keywords to help users stuck on this issue find it easier. --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index e948ca9c9..60395bf90 100644 --- a/readme.md +++ b/readme.md @@ -235,14 +235,14 @@ AVA automatically removes unrelated lines in stack traces, allowing you to find ## Configuration -All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. +All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. Any patterns prefixed with an ! are ignore patterns. ```json { "ava": { "files": [ "my-test-folder/*.js", - "!**/not-this-file.js" + "!**/exclude-this-file.js" ], "source": [ "**/*.{js,jsx}", From e95bf56c838ff933005d0708d27fcd95298ff318 Mon Sep 17 00:00:00 2001 From: briantmorr Date: Wed, 28 Mar 2018 00:27:08 -0700 Subject: [PATCH 2/8] mend --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 60395bf90..ab604899b 100644 --- a/readme.md +++ b/readme.md @@ -235,7 +235,7 @@ AVA automatically removes unrelated lines in stack traces, allowing you to find ## Configuration -All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. Any patterns prefixed with an ! are ignore patterns. +All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. To ignore a file or group of files, prefix an ! to your pattern. ```json { From 93d6675113e8f9b4aca2c6bf142b0a03c500bd53 Mon Sep 17 00:00:00 2001 From: briantmorr Date: Wed, 28 Mar 2018 00:33:32 -0700 Subject: [PATCH 3/8] mend --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index ab604899b..d77b47906 100644 --- a/readme.md +++ b/readme.md @@ -235,7 +235,7 @@ AVA automatically removes unrelated lines in stack traces, allowing you to find ## Configuration -All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. To ignore a file or group of files, prefix an ! to your pattern. +All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. To ignore a file or directory of files, prefix an ! to your pattern. ```json { From 5b371cf22ac571fd06fa7772f2c1a3cf48d555c2 Mon Sep 17 00:00:00 2001 From: briantmorr Date: Wed, 28 Mar 2018 00:34:32 -0700 Subject: [PATCH 4/8] mend --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index d77b47906..0b923317c 100644 --- a/readme.md +++ b/readme.md @@ -235,7 +235,7 @@ AVA automatically removes unrelated lines in stack traces, allowing you to find ## Configuration -All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. To ignore a file or directory of files, prefix an ! to your pattern. +All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. To ignore a file or directory, prefix an ! to your pattern. ```json { From 24aa6d909431db6c5ade7dc7471fea265f0d8265 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Sun, 1 Apr 2018 18:17:19 +0100 Subject: [PATCH 5/8] Tweaks --- readme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 0b923317c..5efd25c9d 100644 --- a/readme.md +++ b/readme.md @@ -235,7 +235,9 @@ AVA automatically removes unrelated lines in stack traces, allowing you to find ## Configuration -All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. To ignore a file or directory, prefix an ! to your pattern. +All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. + +To ignore a file or directory, prefix the pattern with an `!` (exclamation mark). ```json { From 10a8abe8f27a791101d835111020d5a3266a8ccd Mon Sep 17 00:00:00 2001 From: briantmorr Date: Mon, 2 Apr 2018 12:10:26 -0700 Subject: [PATCH 6/8] added example of excluding directory of tests, and tweaked change for readability --- readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 0b923317c..02a385954 100644 --- a/readme.md +++ b/readme.md @@ -235,13 +235,16 @@ AVA automatically removes unrelated lines in stack traces, allowing you to find ## Configuration -All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. To ignore a file or directory, prefix an ! to your pattern. +All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. + +To ignore a file or directory, prefix the pattern with an `!` (exclamation mark). ```json { "ava": { "files": [ "my-test-folder/*.js", + "!exclude-this-folder/*.js", "!**/exclude-this-file.js" ], "source": [ From dcffad0197b30d7146ab5e41a2e02707b21eacaa Mon Sep 17 00:00:00 2001 From: briantmorr Date: Mon, 2 Apr 2018 12:42:59 -0700 Subject: [PATCH 7/8] resaved to update correct changes --- readme.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 6c0ed588c..9e4325b7f 100644 --- a/readme.md +++ b/readme.md @@ -235,11 +235,7 @@ AVA automatically removes unrelated lines in stack traces, allowing you to find ## Configuration -<<<<<<< HEAD -All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. -======= All of the CLI options can be configured in the `ava` section of your `package.json`. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. ->>>>>>> 24aa6d909431db6c5ade7dc7471fea265f0d8265 To ignore a file or directory, prefix the pattern with an `!` (exclamation mark). @@ -247,8 +243,8 @@ To ignore a file or directory, prefix the pattern with an `!` (exclamation mark) { "ava": { "files": [ - "my-test-folder/*.js", - "!exclude-this-folder/*.js", + "my-test-directory/*.js", + "!exclude-this-directory/*.js", "!**/exclude-this-file.js" ], "source": [ From 209e8c7d4308d5facfdb38e4ea519aa8320bf035 Mon Sep 17 00:00:00 2001 From: briantmorr Date: Sat, 7 Apr 2018 12:02:48 -0700 Subject: [PATCH 8/8] updated examples to exclude a directory with mark's suggestions --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 9e4325b7f..a5e148f62 100644 --- a/readme.md +++ b/readme.md @@ -243,8 +243,8 @@ To ignore a file or directory, prefix the pattern with an `!` (exclamation mark) { "ava": { "files": [ - "my-test-directory/*.js", - "!exclude-this-directory/*.js", + "my-test-directory/**/*.js", + "!my-test-directory/exclude-this-directory/**/*.js", "!**/exclude-this-file.js" ], "source": [