Skip to content

Commit

Permalink
Merge pull request #1964 from ember-learn/remove-mocha
Browse files Browse the repository at this point in the history
remove references to mocha in the guides
  • Loading branch information
mansona authored Sep 29, 2023
2 parents fa85a5f + 6d5e92d commit 73661d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions guides/release/testing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion guides/release/testing/testing-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 73661d3

Please sign in to comment.