title: Typescript compiler not complaining about missing switch case
body: <p>Consider the following code:</p>
  <pre><code>  enum MyEnum {
      Enum1,
      Enum2
    }
  
    function switchOverEnum(myEnum: MyEnum) {
      switch (myEnum) {
        case MyEnum.Enum1:
          console.log('it is an enum1');
          break;
        // I am missing the case MyEnum.Enum2 here,
        // but the TypeScript compiler does not complain
      }
    }
  </code></pre>
  <p>I am using this in a project created using <code>create-react-app</code>. My expectation is that TypeScript complains that the case <code>MyEnum.Enum2</code> is not handled, but it doesn't. How can I confiugre the TypeScript compiler to do so?</p>