Currently, tests for codegens check only what code has been generated, but not the validity of the code. This leads to situations where the generated code does not compile.
To improve the situation, we need a simple way to compile the generated code in each test. This may come in a form of extended Jest matcher, or an utility function.