Fix and enable core unit test coverage (#18781)

* Fix and enable core unit test coverage

* switch

* Fix coverage mapping

* don't output marked

* Fix filter check
This commit is contained in:
Charles Gagnon
2022-03-21 15:15:07 -07:00
committed by GitHub
parent 8a670a8baa
commit 08b2d9668e
7 changed files with 14 additions and 11 deletions

View File

@@ -37,9 +37,10 @@ function createCompile(src, build, emitError) {
const sourcemaps = require('gulp-sourcemaps');
const projectPath = path.join(__dirname, '../../', src, 'tsconfig.json');
const overrideOptions = Object.assign(Object.assign({}, getTypeScriptCompilerOptions(src)), { inlineSources: Boolean(build) });
if (!build) {
overrideOptions.inlineSourceMap = true;
}
// {{SQL CARBON EDIT}} Never inline source maps so that generating local coverage works
// if (!build) {
// // overrideOptions.inlineSourceMap = true;
// }
const compilation = tsb.create(projectPath, overrideOptions, false, err => reporter(err));
function pipeline(token) {
const bom = require('gulp-bom');