@test-station/adapter-node-test 0.1.0 → 0.1.6
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/README.md +28 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# @test-station/adapter-node-test
|
|
2
|
+
|
|
3
|
+
Built-in `node:test` adapter for Test Station.
|
|
4
|
+
|
|
5
|
+
Most consumers should install `@test-station/cli` or `@test-station/core` instead of this package directly. The default core bundle already includes the `node:test` adapter. Install this package only when you are composing adapters yourself around `@test-station/core`.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install --save-dev @test-station/adapter-node-test
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## What It Does
|
|
14
|
+
|
|
15
|
+
- runs `node --test` suites and normalizes the output into the shared report model
|
|
16
|
+
- injects Node's built-in `--test-reporter` flag for NDJSON capture
|
|
17
|
+
- supports coverage when the suite command is a direct `node --test ...` invocation
|
|
18
|
+
- writes raw NDJSON artifacts under `raw/`
|
|
19
|
+
|
|
20
|
+
## Direct Use
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import { createNodeTestAdapter } from '@test-station/adapter-node-test';
|
|
24
|
+
|
|
25
|
+
const adapter = createNodeTestAdapter();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Use adapter id `node-test` in `test-station.config.mjs`.
|