Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Update testing section for Meteor 1.7 #173

Merged
merged 10 commits into from
Apr 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions content/angular/step11.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ To do so, we'll add a [test driver](http://guide.meteor.com/testing.html#test-dr
meteor add practicalmeteor:mocha
```

> **New in Meteor 1.7+**: While the `meteor test ...` command does still work as specified below, the release of Meteor 1.7 includes a new feature which allows you to specify the location of the test module in `package.json` with a property named `"testModule"` within the `"meteor"` object, which you can read more about [in the changelog](https://docs.meteor.com/changelog.html#v1720180528). In order to get the expected behavior, such that the `meteor test ...` command only uses files whose names match the format `*.test[s].*` or `*.spec[s].*`, you should either remove the line `"testModule": "tests/main.js"` from your `package.json` file, or change it to an appropriate value, before running `meteor test ...`.

We can now run our app in "test mode" by calling out a special command and specifying to use the driver (you'll need to stop the regular app from running, or specify an alternate port with `--port XYZ`):

```bash
Expand Down
2 changes: 2 additions & 0 deletions content/blaze/step11.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ To do so, we'll add a [test driver](http://guide.meteor.com/testing.html#test-dr
meteor add practicalmeteor:mocha
```

> **New in Meteor 1.7+**: While the `meteor test ...` command does still work as specified below, the release of Meteor 1.7 includes a new feature which allows you to specify the location of the test module in `package.json` with a property named `"testModule"` within the `"meteor"` object, which you can read more about [in the changelog](https://docs.meteor.com/changelog.html#v1720180528). In order to get the expected behavior, such that the `meteor test ...` command only uses files whose names match the format `*.test[s].*` or `*.spec[s].*`, you should either remove the line `"testModule": "tests/main.js"` from your `package.json` file, or change it to an appropriate value, before running `meteor test ...`.

We can now run our app in "test mode" by calling out a special command and specifying to use the driver (you'll need to stop the regular app from running, or specify an alternate port with `--port XYZ`):

```bash
Expand Down
2 changes: 2 additions & 0 deletions content/react/step11.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ meteor npm install --save-dev chai

### Run `meteor test` with a driver package

> **New in Meteor 1.7+**: While the `meteor test ...` command does still work as specified below, the release of Meteor 1.7 includes a new feature which allows you to specify the location of the test module in `package.json` with a property named `"testModule"` within the `"meteor"` object, which you can read more about [in the changelog](https://docs.meteor.com/changelog.html#v1720180528). In order to get the expected behavior, such that the `meteor test ...` command only uses files whose names match the format `*.test[s].*` or `*.spec[s].*`, you should either remove the line `"testModule": "tests/main.js"` from your `package.json` file, or change it to an appropriate value, before running `meteor test ...`.

We can now run our app in "test mode" by running `meteor test` and specifying a test driver package (you'll need to stop the regular app from running, or specify an alternate port with `--port XYZ`):

```bash
Expand Down