forked from react-boilerplate/react-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
# Testing | ||
|
||
Testing your application is a vital part of serious development. There are a few things you should test. If you've never done this before start with [unit testing](unit-testing.md). Move on to [component testing](component-testing.md) when you feel like you understand that! | ||
|
||
We also support [remote testing](remote-testing.md) your local application, which is quite awesome, so definitely check that out! | ||
|
||
## Usage with this boilerplate | ||
|
||
To test your application started with this boilerplate do the following: | ||
|
||
1. Sprinkle `.test.js` files directly next to the parts of your application you want to test. (Or in `test/` subdirectories, it doesn't really matter as long as they are directly next to the parts and end in `.test.js`) | ||
|
||
2. Write your unit and component tests in those files. | ||
|
||
3. Run `$ npm run test` in your terminal and see all the tests pass! (hopefully) | ||
|
||
There are a few more commands related to testing, checkout the [commands documentation](../general/commands.md#testing) for the full list! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
# Testing from different locations | ||
# Remote testing | ||
|
||
```Shell | ||
$ npm run serve | ||
``` | ||
|
||
This command will start a server and tunnel it through with `ngrok`. This'll give you a URL that looks a bit like this: `xxxxx.ngrok.com` This URL will show the version of your application that's in the `build` folder, and is accessible from the entire world! This is great for testing on different devices from different locations! | ||
This command will start a server and tunnel it with `ngrok`. You'll get a URL that looks a bit like this: `http://abcdef.ngrok.com` | ||
|
||
This URL will show the version of your application that's in the `build` folder, and it's accessible from the entire world! This is great for testing on different devices and from different locations! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters