PHPackages                             petecoop/pest-plugin-watch - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. petecoop/pest-plugin-watch

ActiveLibrary[Testing &amp; Quality](/categories/testing)

petecoop/pest-plugin-watch
==========================

A Pest plugin to watch your files and re-run tests on changes.

0.1.0(6mo ago)0129↓50%MITPHPPHP ^8.3

Since Nov 10Pushed 6mo agoCompare

[ Source](https://github.com/petecoop/pest-plugin-watch)[ Packagist](https://packagist.org/packages/petecoop/pest-plugin-watch)[ Docs](https://github.com/petecoop/pest-plugin-watch)[ RSS](/packages/petecoop-pest-plugin-watch/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Pest Plugin Watch
=================

[](#pest-plugin-watch)

A Pest plugin to watch files and restart Pest when they change.

This is a Pest Watch plugin that works with Pest v4 and differs from the official Pest Watch plugin which became unsupported. It's now built on the `spatie/file-system-watcher` package which uses the node package `chokidar` under the hood for efficient file watching.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require petecoop/pest-plugin-watch --dev
```

In your project, you should have the JavaScript package [`chokidar`](https://github.com/paulmillr/chokidar) installed. You can install it via npm

```
npm install chokidar --save-dev
```

If you are using [Bun](https://bun.sh/), you can install it via:

```
bun a -d chokidar
```

The watcher will automatically use `Bun` if there is a `bun.lock` file in your project.

Usage
-----

[](#usage)

To start Pest in watch mode, run the following command:

```
pest --watch
```

This will restart Pest whenever a file in `src`, `app` or `tests` changes.

You can override the default paths by providing your own paths, for example inside your `Pest.php` file:

```
Petecoop\PestWatch\Plugin::directories(['src', 'tests', 'custom-dir']);
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance68

Regular maintenance activity

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

189d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7bfb05a4659b16939bc3dc697db922e7a08eabd2c9de6fe6bb54bf5ee86a4061?d=identicon)[petecoop](/maintainers/petecoop)

---

Top Contributors

[![petecoop](https://avatars.githubusercontent.com/u/1655361?v=4)](https://github.com/petecoop "petecoop (3 commits)")

---

Tags

pluginpestwatchtest watcher

### Embed Badge

![Health badge](/badges/petecoop-pest-plugin-watch/health.svg)

```
[![Health](https://phpackages.com/badges/petecoop-pest-plugin-watch/health.svg)](https://phpackages.com/packages/petecoop-pest-plugin-watch)
```

###  Alternatives

[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)[spatie/pest-plugin-snapshots

A package for snapshot testing in Pest

381.7M157](/packages/spatie-pest-plugin-snapshots)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[jonpurvis/lawman

A PestPHP Plugin to help with architecture testing SaloonPHP integrations

4027.7k8](/packages/jonpurvis-lawman)[spatie/pest-plugin-route-testing

Make sure all routes in your Laravel app are ok

13753.8k](/packages/spatie-pest-plugin-route-testing)[milroyfraser/pest-plugin-gwt

Given When Then(GWT) Plugin for Pest

10332.1k1](/packages/milroyfraser-pest-plugin-gwt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
