orbit-db-types icon indicating copy to clipboard operation
orbit-db-types copied to clipboard

Testing

Open aphelionz opened this issue 6 years ago • 2 comments

From @rigwild's comment in #24:

What you could do is to write a simple TypeScript program that makes use of tested types and check if it compiles successfully without errors/warnings.

aphelionz avatar Apr 19 '20 18:04 aphelionz

I just found out about https://github.com/SamVerschueren/tsd which is exactly what you may be looking for.

rigwild avatar May 01 '20 22:05 rigwild

Just checked it out in more detail and yes! This is exactly it. It would be most useful, I think, if it was part of the orbitdb/orbit-db testing pipeline to make sure these are always up to date with whatever is in the orbitdb/orbit-db#master branch

Edit: Probably not locally, but as part of automated CI via CircleCI or GitHub Actions

aphelionz avatar May 02 '20 05:05 aphelionz