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