@test-station/adapter-jest 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-jest
|
|
2
|
+
|
|
3
|
+
Built-in Jest 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 Jest 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-jest
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## What It Does
|
|
14
|
+
|
|
15
|
+
- runs Jest with JSON output enabled
|
|
16
|
+
- normalizes Jest suite and test results into the shared `report.json` model
|
|
17
|
+
- collects JSON-summary coverage when coverage is enabled
|
|
18
|
+
- writes raw Jest artifacts under `raw/`
|
|
19
|
+
|
|
20
|
+
## Direct Use
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import { createJestAdapter } from '@test-station/adapter-jest';
|
|
24
|
+
|
|
25
|
+
const adapter = createJestAdapter();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Use adapter id `jest` in `test-station.config.mjs`.
|