mockdeep / typewiz

Automatically discover and add missing types in your TypeScript code
https://medium.com/@urish/manual-typing-is-no-fun-introducing-typewiz-58e3e8813f4c
1.1k stars 46 forks source link

Add tests for typewiz-webpack #64

Open urish opened 6 years ago

urish commented 6 years ago

We can run Webpack with a configuration similar to the one in the README file, and then compare the collected types json file with a reference one.

We can probably even run the entire test inside node (using some polyfill for the XHR part), or we can run it inside a real browser using puppeteer.

zoehneto commented 6 years ago

For testing the loader portion of typewiz-webpack the webpack guide for loader testing should explain all that is needed.