The code in this package implements validators that check serialization chunks against the serialization specification. This package is intentionally kept very lightweight, e.g. it uses types instead of classes and has zero dependencies on external libraries/packages.
It's tested by running the validators against the test set in lionweb-integration-testing/testset
.
To make the testset available in this propject, run
npm run setup
To build from soure:
npm run build
To run the tests:
npm run test
This will run the tests in the respective folders in the testset/
folder of lionweb-integration-testing
.
The commands npm run publish-local
and npm run unpublish-local
are used to do a release on a local npm registry (in our case verdaccio
), for use in other local projects. This ensures that we do not have to do contineous releases when we develop two packages depending on aech other.
The test runner runs tests at various levels similar (but probably not quite) as described in the model correctness document. These two should converge in the future.
- Made validation aware that the
value
field of a property serialization is allowed to benull
.
- Don't rely on the JavaScript features – import assertions – that are still marked as experimental. (This necessitates explicitly copying the relevant JSON files.)
(For earlier versions no changelog was maintained.)