<p dir="auto">Perhaps it's duplicated, if it's the case, please redirect me, but how can I make a test that verifies that some piece of invalid code gets rejected by type checker?</p>
<p dir="auto">Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andy-ms/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andy-ms">@andy-ms</a></p>
<p dir="auto">Latest changes by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jacobwgillespie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jacobwgillespie">@jacobwgillespie</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RyanCavanaugh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RyanCavanaugh">@RyanCavanaugh</a>  may have caused this issue. "@ types/react": "^16.3.11" causes this error because it loads 16.3.12 which breaks. Removing ^ from the version like "16.3.11" fixes the problem.</p>
<p dir="auto">The TS starter kit of Microsoft fails too. <a href="https://github.com/Microsoft/TypeScript-React-Starter">https://github.com/Microsoft/TypeScript-React-Starter</a></p>