registry icon indicating copy to clipboard operation
registry copied to clipboard

Test Suite for Writing Typings

Open blakeembrey opened this issue 8 years ago • 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.

blakeembrey avatar Feb 27 '16 00:02 blakeembrey

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

unional avatar Feb 27 '16 00:02 unional

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

louy avatar Mar 06 '16 10:03 louy