From 0ad0da57d88e954e20ef23b36ab4350f1147a6d5 Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Fri, 29 Sep 2023 15:42:31 +0100 Subject: [PATCH 1/2] remove references to mocha in the guides --- guides/release/testing/index.md | 6 +++--- guides/release/testing/testing-tools.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/guides/release/testing/index.md b/guides/release/testing/index.md index af9460b05b..46eb499a6c 100644 --- a/guides/release/testing/index.md +++ b/guides/release/testing/index.md @@ -34,7 +34,7 @@ ember t -s When you are working on a single component or page, you will want only a small subset of tests to run after every file change. To specify which tests to run, you can add `--module` or `--filter` option to your command. -The `--module` option allows you to select a **module**—a group of tests that you specified in `module()` in QUnit, or `describe()` in Mocha. +The `--module` option allows you to select a **module**—a group of tests that you specified in `module()` in QUnit. ```bash # Button component example @@ -44,7 +44,7 @@ ember test --server --module="Integration | Component | simple-button" ember t -s -m="Unit | Service | location" ``` -The `--filter` option is more versatile. You can provide a phrase to match against the modules and test descriptions. A test description is what appears in `test()` in QUnit, or `it()` in Mocha. +The `--filter` option is more versatile. You can provide a phrase to match against the modules and test descriptions. A test description is what appears in `test()` in QUnit. ```bash # Button component example @@ -57,7 +57,7 @@ ember t -s -f="Dashboard" ember t -s -f="Integration" ``` -In QUnit, you can exclude tests by adding an exclamation point to the beginning of the filter, e.g. `ember test --filter="!Acceptance"`. In Mocha, `ember test --filter="Acceptance" --invert`. +In QUnit, you can exclude tests by adding an exclamation point to the beginning of the filter, e.g. `ember test --filter="!Acceptance"`. To learn more about options for testing, you can visit [Ember CLI Documentation](https://ember-cli.com/testing) or type `ember help test` in the command line. diff --git a/guides/release/testing/testing-tools.md b/guides/release/testing/testing-tools.md index 222e82d45c..65f8a8585f 100644 --- a/guides/release/testing/testing-tools.md +++ b/guides/release/testing/testing-tools.md @@ -164,6 +164,6 @@ While we don't recommend this practice in general, you might also use Percy in l ## Summary -Ember provides easy paths to integrate QUnit and Mocha, also it supports a variety of addons and debugging tools to improve your developer experience in testing. +Ember provides easy paths to integrate QUnit, and it also supports a variety of addons and debugging tools to improve your developer experience in testing. In the next section, we will study 3 types of tests that Ember supports—unit, rendering, and application tests. We will look at each type and when you might use one over another. From 6d5e92d35e0d0a0062a9efa92b1f25922dfbc5e0 Mon Sep 17 00:00:00 2001 From: Chris Manson Date: Fri, 29 Sep 2023 21:29:50 +0100 Subject: [PATCH 2/2] remove extra comma Co-authored-by: Peter Wagenet --- guides/release/testing/testing-tools.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guides/release/testing/testing-tools.md b/guides/release/testing/testing-tools.md index 65f8a8585f..71e50bfa3e 100644 --- a/guides/release/testing/testing-tools.md +++ b/guides/release/testing/testing-tools.md @@ -164,6 +164,6 @@ While we don't recommend this practice in general, you might also use Percy in l ## Summary -Ember provides easy paths to integrate QUnit, and it also supports a variety of addons and debugging tools to improve your developer experience in testing. +Ember provides easy paths to integrate QUnit and it also supports a variety of addons and debugging tools to improve your developer experience in testing. In the next section, we will study 3 types of tests that Ember supports—unit, rendering, and application tests. We will look at each type and when you might use one over another.