dicom-curate 0.39.1 → 0.40.1
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
|
@@ -436,6 +436,27 @@ When a file is excluded, `curateOne` / `curateMany` still returns a result objec
|
|
|
436
436
|
result.excluded // => 'pre' | 'post' | undefined
|
|
437
437
|
```
|
|
438
438
|
|
|
439
|
+
## Testing
|
|
440
|
+
|
|
441
|
+
Vitest is split into three projects in `vitest.config.ts`:
|
|
442
|
+
|
|
443
|
+
| Command | Project | Location | Purpose |
|
|
444
|
+
|---------|---------|----------|---------|
|
|
445
|
+
| `pnpm test` | `unit` | `src/**/*.test.ts` | Unit and integration tests co-located with source |
|
|
446
|
+
| `pnpm test:e2e` | `e2e` | `e2e/` | Pipeline smoke tests (runs `build:esm` first; uses `dist/`) |
|
|
447
|
+
| `pnpm test:conformance` | `conformance` | `conformance/` | `dciodvfy` regression (synthetic; optional public/local via env) |
|
|
448
|
+
|
|
449
|
+
Other scripts:
|
|
450
|
+
|
|
451
|
+
| Script | Purpose |
|
|
452
|
+
|--------|---------|
|
|
453
|
+
| `pnpm test:coverage` | Unit project with coverage |
|
|
454
|
+
| `pnpm update:conformance-baselines` | Regenerate committed `dciodvfy` baseline JSON |
|
|
455
|
+
|
|
456
|
+
Conformance tests require the external `dciodvfy` binary from [dicom3tools](https://www.dclunie.com/dicom3tools.html). See [conformance/README.md](conformance/README.md) for install, CI behaviour, baseline refresh, and optional `RUN_PUBLIC_CONFORMANCE` / `CONFORMANCE_LOCAL_*` env vars.
|
|
457
|
+
|
|
458
|
+
Shared test helpers: `testutils/` (minimal DICOM files, worker mocks). Fixture generation and public-case fetch: devDependency [`dicom-synth`](https://github.com/clintools/dicom-synth).
|
|
459
|
+
|
|
439
460
|
## DICOM Conformance Notes
|
|
440
461
|
|
|
441
462
|
dicom-curate
|
package/dist/esm/index.js
CHANGED
|
@@ -95226,6 +95226,7 @@ export {
|
|
|
95226
95226
|
curateOne,
|
|
95227
95227
|
extractColumnMappings,
|
|
95228
95228
|
hash,
|
|
95229
|
+
hashStream,
|
|
95229
95230
|
specVersion
|
|
95230
95231
|
};
|
|
95231
95232
|
/*! Bundled license information:
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { specVersion } from './config/specVersion';
|
|
|
8
8
|
export type { Row } from './csvMapping';
|
|
9
9
|
export { csvTextToRows } from './csvMapping';
|
|
10
10
|
export { TCurateOneArgs } from './curateOne';
|
|
11
|
-
export { hash } from './hash';
|
|
11
|
+
export { hash, hashStream } from './hash';
|
|
12
12
|
export type { ProgressCallback } from './mappingWorkerPool';
|
|
13
13
|
export type { OrganizeOptions, TCurationSpecification, TCustomUploader, TMapResults, TProgressMessage, TPs315Options, } from './types';
|
|
14
14
|
declare function curateMany(organizeOptions: OrganizeOptions, onProgress?: ProgressCallback): Promise<TProgressMessageDone>;
|
|
@@ -141416,6 +141416,7 @@
|
|
|
141416
141416
|
exports.curateOne = curateOne;
|
|
141417
141417
|
exports.extractColumnMappings = extractColumnMappings;
|
|
141418
141418
|
exports.hash = hash;
|
|
141419
|
+
exports.hashStream = hashStream;
|
|
141419
141420
|
exports.specVersion = specVersion;
|
|
141420
141421
|
|
|
141421
141422
|
}));
|