-
Notifications
You must be signed in to change notification settings - Fork 0
Testing
Run the standard local checks before handing normal code changes back:
npm run check
npm test
npm run build
npm run smokeFor package or release-related changes, also run:
npm run pack:dry-runThe Vitest suite covers core behavior such as:
- candidate ranking,
- feature extraction,
- document hypotheses,
- report generation,
- PKI corpus behavior,
- PkiStudioJS adapter contracts.
Relevant test files live under test/.
The smoke command builds the package and runs a real DER hex fragment through the public API.
Expected behavior: the sample AlgorithmIdentifier fragment should report PkiComponents.AlgorithmIdentifier as the best candidate.
Run the local viewer with:
npm run dev -- --port 5173 --strictPortThen open:
http://localhost:5173/
Use the embedded PkiStudioJS viewer's Load menu to load sample DER/HEX input and confirm that the candidate tree, selected details, copy JSON, and API log update.
Build the Pages viewer locally with:
npm run build:pagesThe Pages workflow publishes the pages-dist artifact.
After publication, verify npm package state with:
npm view @pkistudio/asn1defsifter@<version> version dist-tags dist.tarball --json