typings/registry

Test Suite for Writing Typings

blakeembrey opened this issue · 2 comments

Relevant information for anyone writing Typings definitions and wanting to execute tests.

I saw @unional has been installing definitions into themselves as part of the dev dependencies, but there's actually a simpler way - use typings bundle. I implemented this while testing https://github.com/typed-typings/npm-batch, and I combined it with ts-node to create a simple test suite of both the runtime and compile time since ts-node will crash on compiler errors.

Relevant implementation: https://github.com/typed-typings/npm-batch/blob/master/package.json

I'll keep this open for anyone that needs guidance on implementing Typings.

Thank! I'll try it out and update generator-typings

louy commented

That's nice! I'll give it a try next time.