@reporters/silent 1.0.0 → 1.2.0

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,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.2.0](https://github.com/MoLow/reporters/compare/silent-v1.1.0...silent-v1.2.0) (2023-07-05)
4
+
5
+
6
+ ### Features
7
+
8
+ * publish with provenance ([6ee1e46](https://github.com/MoLow/reporters/commit/6ee1e46040329edeb0f40f753093b6952984f001))
9
+
10
+ ## [1.1.0](https://github.com/MoLow/reporters/compare/silent-v1.0.0...silent-v1.1.0) (2023-05-30)
11
+
12
+
13
+ ### Features
14
+
15
+ * report node 20 features ([c99a76c](https://github.com/MoLow/reporters/commit/c99a76c0f6bef75abb2c053c82c88448b0c82690))
16
+
3
17
  ## 1.0.0 (2022-12-25)
4
18
 
5
19
 
package/README.md CHANGED
@@ -1,4 +1,5 @@
1
- [![npm version](https://img.shields.io/npm/v/@reporters/github)](https://www.npmjs.com/package/@reporters/github) ![tests](https://github.com/MoLow/reporters/actions/workflows/test.yaml/badge.svg?branch=main)
1
+ [![npm version](https://img.shields.io/npm/v/@reporters/silent)](https://www.npmjs.com/package/@reporters/silent) ![tests](https://github.com/MoLow/reporters/actions/workflows/test.yaml/badge.svg?branch=main) [![codecov](https://codecov.io/gh/MoLow/reporters/branch/main/graph/badge.svg?token=0LFVC8SCQV)](https://codecov.io/gh/MoLow/reporters)
2
+
2
3
  # Silent Reporter
3
4
  A Silent reporter for `node:test`, in case you don't want to see any output.
4
5
 
@@ -20,3 +21,4 @@ node --test --test-reporter=@reporters/silent
20
21
 
21
22
  the output will be empty, but the tests will still run,
22
23
  and the exit code will be 0 if all tests pass, and 1 if any test fails.
24
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reporters/silent",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "A silent reporter for `node:test`",
5
5
  "keywords": [
6
6
  "node:test",
@@ -9,7 +9,7 @@
9
9
  "reporters"
10
10
  ],
11
11
  "scripts": {
12
- "test": "../../prebuilt --test"
12
+ "test": "node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=../github/index.js --test-reporter-destination=stdout --test"
13
13
  },
14
14
  "bugs": {
15
15
  "url": "https://github.com/MoLow/reporters/issues"
@@ -1,7 +1,9 @@
1
+ const { test } = require('node:test');
1
2
  const { spawnSync } = require('child_process');
2
3
  const assert = require('assert');
3
4
 
4
- const child = spawnSync(process.execPath, ['--test-reporter', './index.js', '../../tests/example']);
5
-
6
- assert.strictEqual(child.stderr?.toString(), '');
7
- assert.strictEqual(child.stdout?.toString(), '');
5
+ test('spwan with reporter', () => {
6
+ const child = spawnSync(process.execPath, ['--test-reporter', './index.js', '../../tests/example'], { env: {} });
7
+ assert.strictEqual(child.stderr?.toString(), '');
8
+ assert.strictEqual(child.stdout?.toString(), '');
9
+ });