@reporters/mocha 1.0.0 → 1.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +4 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -19,7 +19,7 @@ yarn add --dev @reporters/mocha
19
19
  Specify the desired mocha reporter inside the [mocha configuration file](https://mochajs.org/#configuring-mocha-nodejs), e.g. `.mocharc.js`:
20
20
  ```js
21
21
  module.exports = {
22
- reporter: '@reporters/mocha'
22
+ reporter: 'nyan'
23
23
  }
24
24
  ```
25
25
 
package/index.js CHANGED
@@ -145,6 +145,10 @@ class Runner extends EventEmitter {
145
145
  this.emit(EVENT_RUN_BEGIN);
146
146
  }
147
147
 
148
+ get suite() {
149
+ return this.#current;
150
+ }
151
+
148
152
  end() {
149
153
  if (!this.#reporter) {
150
154
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reporters/mocha",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "use any mocha reporter with `node:test`",
5
5
  "type": "commonjs",
6
6
  "keywords": [