Target in app tsconfig is set to es2022 by the Angular CLI, so we must
set it as well to be consistent in the rest of the tooling. Angular
compilation later uses browserslist for further transpilations.
Target in unit tests is kept at es2016 because of a known bug in
Angular: https://github.com/angular/angular/issues/31730