@reporters/testwatch 1.3.0 → 1.3.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.3.1](https://github.com/MoLow/reporters/compare/testwatch-v1.3.0...testwatch-v1.3.1) (2023-07-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * listen to `test:enqueue` event ([7c4a5b5](https://github.com/MoLow/reporters/commit/7c4a5b5435ee7cdaa2cd932fbd3c850ca8b1dcc2))
9
+
3
10
  ## [1.3.0](https://github.com/MoLow/reporters/compare/testwatch-v1.2.1...testwatch-v1.3.0) (2023-07-05)
4
11
 
5
12
 
package/index.js CHANGED
@@ -81,7 +81,7 @@ class REPL {
81
81
  async function* (source) {
82
82
  for await (const data of source) {
83
83
  yield data;
84
- if (data.type === 'test:start' && drained) {
84
+ if (drained && (data.type === 'test:start' || data.type === 'test:enqueue')) {
85
85
  this.#clear();
86
86
  drained = false;
87
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reporters/testwatch",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "An interactive repl for `node:test`",
5
5
  "keywords": [
6
6
  "node:test",