@reporters/testwatch 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +149 -0
- package/README.md +32 -6
- package/package.json +3 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [2.0.1](https://github.com/MoLow/reporters/compare/testwatch-v2.0.0...testwatch-v2.0.1) (2026-07-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Documentation
|
|
7
|
+
|
|
8
|
+
* rewrite package READMEs with demos and clearer positioning ([#209](https://github.com/MoLow/reporters/issues/209)) ([e1265e5](https://github.com/MoLow/reporters/commit/e1265e5f6b8a0f34b80ef7ee725cede4ed16b6da))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Miscellaneous Chores
|
|
12
|
+
|
|
13
|
+
* route this repo's tests through @reporters/mux ([#207](https://github.com/MoLow/reporters/issues/207)) ([85a5973](https://github.com/MoLow/reporters/commit/85a59737bc3d631b0293edf343b77fd82e0c459d))
|
|
14
|
+
|
|
15
|
+
## [2.0.0](https://github.com/MoLow/reporters/compare/testwatch-v1.5.1...testwatch-v2.0.0) (2026-05-24)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### ⚠ BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* packages are now ESM-only. CommonJS consumers require Node.js >=22 (for require(esm)); reporters loaded via Node's --test-reporter flag continue to work on all supported versions.
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* convert packages to ESM, upgrade Node and Yarn ([d4cd2eb](https://github.com/MoLow/reporters/commit/d4cd2ebcd9d1f700d297768f937519079da17ec0))
|
|
25
|
+
|
|
26
|
+
## [1.5.1](https://github.com/MoLow/reporters/compare/testwatch-v1.5.0...testwatch-v1.5.1) (2025-08-06)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Miscellaneous Chores
|
|
30
|
+
|
|
31
|
+
* **gh:** rename github-spec to gh ([#140](https://github.com/MoLow/reporters/issues/140)) ([0c50f28](https://github.com/MoLow/reporters/commit/0c50f2893236a5e841683c99ca61269c19f56d5e))
|
|
32
|
+
|
|
33
|
+
## [1.5.0](https://github.com/MoLow/reporters/compare/testwatch-v1.4.5...testwatch-v1.5.0) (2025-08-06)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **github-spec:** new combined reporter ([#136](https://github.com/MoLow/reporters/issues/136)) ([17a051f](https://github.com/MoLow/reporters/commit/17a051f4b4a23ad5f2e19aae58c3803970f7ba47))
|
|
39
|
+
|
|
40
|
+
## [1.4.5](https://github.com/MoLow/reporters/compare/testwatch-v1.4.4...testwatch-v1.4.5) (2024-12-10)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Miscellaneous Chores
|
|
44
|
+
|
|
45
|
+
* fix typos ([a421b9a](https://github.com/MoLow/reporters/commit/a421b9a8b2c78d9df6816994160e5b8d25914b77))
|
|
46
|
+
|
|
47
|
+
## [1.4.4](https://github.com/MoLow/reporters/compare/testwatch-v1.4.3...testwatch-v1.4.4) (2024-09-10)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Tests
|
|
51
|
+
|
|
52
|
+
* update tests to reflect latest node updates ([#125](https://github.com/MoLow/reporters/issues/125)) ([2849c0f](https://github.com/MoLow/reporters/commit/2849c0f9b57375eb4dc704539fdb331b0b4cd572))
|
|
53
|
+
|
|
54
|
+
## [1.4.3](https://github.com/MoLow/reporters/compare/testwatch-v1.4.2...testwatch-v1.4.3) (2024-01-04)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Bug Fixes
|
|
58
|
+
|
|
59
|
+
* **test:** update tests ([#106](https://github.com/MoLow/reporters/issues/106)) ([8c09454](https://github.com/MoLow/reporters/commit/8c09454aeefe41e10f9466fc593ff80408d06c8a))
|
|
60
|
+
|
|
61
|
+
## [1.4.2](https://github.com/MoLow/reporters/compare/testwatch-v1.4.1...testwatch-v1.4.2) (2023-09-26)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Bug Fixes
|
|
65
|
+
|
|
66
|
+
* node 20 skip text changes ([fb993b8](https://github.com/MoLow/reporters/commit/fb993b8c5e960b6986b1fdca4b754a2fdb22ea40))
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Miscellaneous Chores
|
|
70
|
+
|
|
71
|
+
* add "type" to package.json ([d8567bd](https://github.com/MoLow/reporters/commit/d8567bdd2a415919dba6ba652d2e33dc233426ce))
|
|
72
|
+
|
|
73
|
+
## [1.4.1](https://github.com/MoLow/reporters/compare/testwatch-v1.4.0...testwatch-v1.4.1) (2023-08-13)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Miscellaneous Chores
|
|
77
|
+
|
|
78
|
+
* eslint fixes ([3100c40](https://github.com/MoLow/reporters/commit/3100c40ffe3a3e63afb05991f07bf8dbc23efbc9))
|
|
79
|
+
|
|
80
|
+
## [1.4.0](https://github.com/MoLow/reporters/compare/testwatch-v1.3.2...testwatch-v1.4.0) (2023-07-18)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### Features
|
|
84
|
+
|
|
85
|
+
* support node 18 ([02c8957](https://github.com/MoLow/reporters/commit/02c8957ffca3cb8376f7ad5a94f4627c70b7f8e5))
|
|
86
|
+
|
|
87
|
+
## [1.3.2](https://github.com/MoLow/reporters/compare/testwatch-v1.3.1...testwatch-v1.3.2) (2023-07-16)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Bug Fixes
|
|
91
|
+
|
|
92
|
+
* deflake tests ([43aeba4](https://github.com/MoLow/reporters/commit/43aeba4b57a0e1712f2812abcf427d5aaf9172be))
|
|
93
|
+
* remove unnecessary files from the package ([1e01453](https://github.com/MoLow/reporters/commit/1e01453535b22911cd024a518794656799e90d3b))
|
|
94
|
+
|
|
95
|
+
## [1.3.1](https://github.com/MoLow/reporters/compare/testwatch-v1.3.0...testwatch-v1.3.1) (2023-07-06)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### Bug Fixes
|
|
99
|
+
|
|
100
|
+
* listen to `test:enqueue` event ([7c4a5b5](https://github.com/MoLow/reporters/commit/7c4a5b5435ee7cdaa2cd932fbd3c850ca8b1dcc2))
|
|
101
|
+
|
|
102
|
+
## [1.3.0](https://github.com/MoLow/reporters/compare/testwatch-v1.2.1...testwatch-v1.3.0) (2023-07-05)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Features
|
|
106
|
+
|
|
107
|
+
* publish with provenance ([6ee1e46](https://github.com/MoLow/reporters/commit/6ee1e46040329edeb0f40f753093b6952984f001))
|
|
108
|
+
|
|
109
|
+
## [1.2.1](https://github.com/MoLow/reporters/compare/testwatch-v1.2.0...testwatch-v1.2.1) (2023-07-02)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Bug Fixes
|
|
113
|
+
|
|
114
|
+
* clear screen before tests ([3d3f67c](https://github.com/MoLow/reporters/commit/3d3f67cddd7047c857e001066021933eb1381ec3))
|
|
115
|
+
|
|
116
|
+
## [1.2.0](https://github.com/MoLow/reporters/compare/testwatch-v1.1.1...testwatch-v1.2.0) (2023-06-19)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### Features
|
|
120
|
+
|
|
121
|
+
* add test:watch script ([4357fbd](https://github.com/MoLow/reporters/commit/4357fbde5f337cfd39226497f8ce0f6760f8a62c))
|
|
122
|
+
* change default file filter ([5968235](https://github.com/MoLow/reporters/commit/596823529cd9a86e5eeada0523825fa215e49efe))
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Bug Fixes
|
|
126
|
+
|
|
127
|
+
* don't exit when no tests on initial run ([66bcc2b](https://github.com/MoLow/reporters/commit/66bcc2bc6436b544900cfbceb4bbfb0d93973490))
|
|
128
|
+
|
|
129
|
+
## [1.1.1](https://github.com/MoLow/reporters/compare/testwatch-v1.1.0...testwatch-v1.1.1) (2023-06-12)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Bug Fixes
|
|
133
|
+
|
|
134
|
+
* increase maximum listeners of event emitters ([b16d2ab](https://github.com/MoLow/reporters/commit/b16d2ab3b55554e1aaa9b9ca2222254bac364803))
|
|
135
|
+
* support partial file name filter ([2b3f0ab](https://github.com/MoLow/reporters/commit/2b3f0abe0be37450c7b9189667ad47d4d39a4252))
|
|
136
|
+
|
|
137
|
+
## [1.1.0](https://github.com/MoLow/reporters/compare/testwatch-v1.0.0...testwatch-v1.1.0) (2023-06-08)
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
### Features
|
|
141
|
+
|
|
142
|
+
* fix @reporters/bail docs ([32fd66b](https://github.com/MoLow/reporters/commit/32fd66bdf788a2d6067bac72cee9fbc50b2d76e3))
|
|
143
|
+
|
|
144
|
+
## 1.0.0 (2023-06-08)
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Features
|
|
148
|
+
|
|
149
|
+
* add @reporters/repl package ([b66b525](https://github.com/MoLow/reporters/commit/b66b525c78e93e96d04b19a2e846ab040078ace7))
|
package/README.md
CHANGED
|
@@ -1,25 +1,51 @@
|
|
|
1
1
|
[](https://www.npmjs.com/package/@reporters/testwatch)  [](https://codecov.io/gh/MoLow/reporters)
|
|
2
2
|
|
|
3
|
-
# Interactive
|
|
4
|
-
An interactive REPL for `node:test` watch mode.
|
|
3
|
+
# Interactive Watch Mode for `node:test`
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
A jest-style interactive watch REPL for the built-in Node.js test runner.
|
|
6
|
+
|
|
7
|
+
`testwatch` runs your suite, stays open, and reruns on demand — and you can
|
|
8
|
+
narrow the run from the keyboard without ever restarting: filter by file name
|
|
9
|
+
pattern, filter by test name pattern, stack the two, clear them, run again.
|
|
10
|
+
The tight feedback loop you're used to from `jest --watch`, for `node:test`.
|
|
11
|
+
|
|
12
|
+

|
|
7
13
|
|
|
8
14
|
## Installation
|
|
9
15
|
|
|
10
16
|
```bash
|
|
11
17
|
npm install -g @reporters/testwatch
|
|
12
18
|
```
|
|
13
|
-
or
|
|
19
|
+
or run it without installing:
|
|
14
20
|
```bash
|
|
15
|
-
|
|
21
|
+
npx @reporters/testwatch
|
|
16
22
|
```
|
|
17
23
|
|
|
18
24
|
## Usage
|
|
19
25
|
|
|
20
|
-
Run `testwatch` in the root of your project
|
|
26
|
+
Run `testwatch` in the root of your project:
|
|
21
27
|
|
|
22
28
|
```bash
|
|
23
29
|
testwatch
|
|
24
30
|
```
|
|
25
31
|
|
|
32
|
+
You can also seed the file filter from the command line:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
testwatch "integration/**"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Keyboard commands
|
|
39
|
+
|
|
40
|
+
| Key | Action |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| `a` | run all tests |
|
|
43
|
+
| `p` | filter by a file name pattern |
|
|
44
|
+
| `t` | filter by a test name pattern |
|
|
45
|
+
| `c` | clear the active filters |
|
|
46
|
+
| `Enter` | trigger a test run |
|
|
47
|
+
| `w` | show the full menu |
|
|
48
|
+
| `q` / `Ctrl+C` | quit |
|
|
49
|
+
|
|
50
|
+
File and test filters compose: filter files to `cart`, then tests to `total`,
|
|
51
|
+
and only tests matching both run — everything else is reported as skipped.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reporters/testwatch",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "An interactive repl for `node:test`",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"nodeVersion.js"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
-
"test": "node --test-reporter
|
|
18
|
+
"test": "node --test-reporter=@reporters/mux --test tests/index.test.js",
|
|
19
19
|
"test:watch": "testwatch tests/index"
|
|
20
20
|
},
|
|
21
21
|
"bugs": {
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
"chalk": "^4.1.1",
|
|
31
31
|
"glob": "^10.2.6"
|
|
32
32
|
}
|
|
33
|
-
}
|
|
33
|
+
}
|