@orkestrel/test 0.0.37 → 0.0.39

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 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/types.ts']
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']
@@ -135,8 +136,8 @@ Object.keys(
135
136
  Object.keys(
136
137
  readInventory(root, ['src'], { extensions: ['.ts'], exclude: ['src/server', 'src/browser'] }),
137
138
  )
138
- // ['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']
139
+ // ['src/bin/reporter.ts', 'src/core/Production.ts', 'src/core/Teardown.ts', 'src/core/constants.ts', 'src/core/factories.ts',
140
+ // 'src/core/helpers.ts', 'src/core/index.ts', 'src/core/types.ts', 'src/core/validators.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,18 @@ 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, and
220
- `@orkestrel/test/server` for the Node helpers. Core and server ship ESM and CommonJS; the browser
221
- face ships ESM only, because `vitest/browser` is an ES-only module.
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. The reporter entry
224
+ lives at `src/bin/reporter.ts` and builds to `dist/bin/reporter.js`; the specifier does not name
225
+ that path.
226
+
227
+ Run a suite with the progress reporter by naming the entry and the file it appends to:
228
+
229
+ ```sh
230
+ npx vitest run --reporter=@orkestrel/test/reporter --outputFile.progress=tmp/runs/progress.jsonl
231
+ ```
222
232
 
223
233
  ## License
224
234
 
@@ -0,0 +1,5 @@
1
+ import { ProgressReporter } from '../src/server/index.js';
2
+
3
+ export default ProgressReporter;
4
+
5
+ export { }
@@ -0,0 +1,6 @@
1
+ import { ProgressReporter } from "../src/server/index.js";
2
+ // src/bin/reporter.ts
3
+ var reporter_default = ProgressReporter;
4
+ export { reporter_default as default };
5
+
6
+ //# sourceMappingURL=reporter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reporter.js","names":[],"sources":["../../src/bin/reporter.ts"],"sourcesContent":["import { ProgressReporter } from '@src/server'\n\nexport default ProgressReporter\n"],"mappings":";;AAEA,IAAA,mBAAe"}