Skip to content
This repository was archived by the owner on Oct 6, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
'children' => [
'Livewire' => 'docs/plugins/livewire',
'Faker' => 'docs/plugins/faker',
'Watch' => 'docs/plugins/watch',
]
],
'Get involved' => [
Expand Down
6 changes: 3 additions & 3 deletions source/docs/plugins/faker.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The `faker()` function will create an instance of the Faker generator with the d
```php
it('generates a name using faker', function () {
$name = faker()->name;

assertIsString($name);
});
```
Expand All @@ -35,11 +35,11 @@ creating the instance of the Faker generator.
```php
it('generates a name using faker with locale', function () {
$name = faker('fr_FR')->name;

assertIsString($name);
});
```

Remember, for the full list of available Faker methods, please refer to the [Faker documentation](https://github.com/fzaninotto/Faker#formatters).

Next section: [Community →](/docs/community)
Next section: [Watch Plugin →](/docs/plugins/watch)
2 changes: 1 addition & 1 deletion source/docs/plugins/livewire.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ it('can be decremented', function () {

Remember, for the full list of available Livewire methods, please refer to the [Livewire documentation](https://laravel-livewire.com/docs/testing).

Next section: [Faker →](/docs/plugins/faker)
Next section: [Faker Plugin →](/docs/plugins/faker)
28 changes: 28 additions & 0 deletions source/docs/plugins/watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: Watch Plugin
description: The Watch Plugin
extends: _layouts.documentation
section: content
---

# Watch Plugin

The Watch Plugin for Pest allows keep an eye for the test folder and run your Pest tests.

Install the plugin using Composer:

```bash
composer require pestphp/pest-plugin-watch --dev
```

This will add new option to your Pest CLI so you can start watching any updates on your `tests/` folder.

**Just start Pest with the following command:**

```bash
pest --watch # Night gathers, and now my watch begins
```

**Attention:** To use this plugin you will need to have installed [`fswatch`](https://github.com/emcrisostomo/fswatch#installation) on your machine.

Next section: [Community →](/docs/community)