@orkestrel/test 0.0.37 → 0.0.38
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 +13 -5
- package/dist/reporter/main.d.ts +5 -0
- package/dist/reporter/main.js +6 -0
- package/dist/reporter/main.js.map +1 -0
- package/dist/src/server/index.cjs +640 -1
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +568 -0
- package/dist/src/server/index.d.ts +568 -0
- package/dist/src/server/index.js +626 -4
- package/dist/src/server/index.js.map +1 -1
- package/package.json +16 -6
package/README.md
CHANGED
|
@@ -112,7 +112,8 @@ Object.keys(sources)
|
|
|
112
112
|
// ['src/core/Production.ts', 'src/core/Teardown.ts', 'src/core/constants.ts', 'src/core/factories.ts', 'src/core/helpers.ts', 'src/core/index.ts',
|
|
113
113
|
// 'src/core/types.ts', 'src/core/validators.ts', 'src/server/Loopback.ts', 'src/server/constants.ts',
|
|
114
114
|
// 'src/server/factories.ts', 'src/server/helpers.ts', 'src/server/index.ts',
|
|
115
|
-
// 'src/server/
|
|
115
|
+
// 'src/server/reporters/ProgressReporter.ts',
|
|
116
|
+
// 'src/server/types.ts', 'src/server/validators.ts']
|
|
116
117
|
|
|
117
118
|
// The keys are paths; the values are the file contents.
|
|
118
119
|
sources['src/core/index.ts']
|
|
@@ -136,7 +137,7 @@ Object.keys(
|
|
|
136
137
|
readInventory(root, ['src'], { extensions: ['.ts'], exclude: ['src/server', 'src/browser'] }),
|
|
137
138
|
)
|
|
138
139
|
// ['src/core/Production.ts', 'src/core/Teardown.ts', 'src/core/constants.ts', 'src/core/factories.ts', 'src/core/helpers.ts', 'src/core/index.ts',
|
|
139
|
-
// 'src/core/types.ts', 'src/core/validators.ts']
|
|
140
|
+
// 'src/core/types.ts', 'src/core/validators.ts', 'src/reporter/main.ts']
|
|
140
141
|
```
|
|
141
142
|
|
|
142
143
|
Keys are root-relative and `/`-separated whatever the host separator is. The suite gates that proof
|
|
@@ -216,9 +217,16 @@ rule deciding what ships and what stays in the package that owns it — see
|
|
|
216
217
|
## Package
|
|
217
218
|
|
|
218
219
|
Published as typed entry points per the `exports` field in `package.json`: `@orkestrel/test` for the
|
|
219
|
-
host-independent core, `@orkestrel/test/browser` for the journey layer,
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
host-independent core, `@orkestrel/test/browser` for the journey layer, `@orkestrel/test/server`
|
|
221
|
+
for the Node helpers, and `@orkestrel/test/reporter` for the progress reporter Vitest loads by
|
|
222
|
+
specifier. Core and server ship ESM and CommonJS. The browser face ships ESM only, because
|
|
223
|
+
`vitest/browser` is an ES-only module, and the reporter entry ships ESM only.
|
|
224
|
+
|
|
225
|
+
Run a suite with the progress reporter by naming the entry and the file it appends to:
|
|
226
|
+
|
|
227
|
+
```sh
|
|
228
|
+
npx vitest run --reporter=@orkestrel/test/reporter --outputFile.progress=tmp/runs/progress.jsonl
|
|
229
|
+
```
|
|
222
230
|
|
|
223
231
|
## License
|
|
224
232
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.js","names":[],"sources":["../../src/reporter/main.ts"],"sourcesContent":["import { ProgressReporter } from '@src/server'\n\nexport default ProgressReporter\n"],"mappings":";;AAEA,IAAA,eAAe"}
|