Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
namedFiles: true,
pageTitle: 'sp-dev-fx-controls-react unit-tests report',
urlFriendlyName: false,
reportName: 'sp-dev-fx-controls-react-report',
};
config.plugins.push(htmlReporter);
// Add the remap-coverage - code coverage for the original files
config.reporters.push('remap-coverage');
config.coverageReporter = {
type: 'in-memory'
}
config.remapCoverageReporter = {
'text-summary': null,
html: path.join(gulp_core_build.getConfig().tempFolder, 'coverage/html'),
cobertura: path.join(gulp_core_build.getConfig().tempFolder, 'coverage/cobertura.xml')
};
config.plugins.push(remapCoverageReporter);
};
'use strict';
let build = require('@microsoft/gulp-core-build');
let { tscCmd, lintCmd, apiExtractor } = require('@microsoft/gulp-core-build-typescript')
let mocha = require('@microsoft/gulp-core-build-mocha');
build.setConfig({
shouldWarningsFailBuild: build.getConfig().production
});
build.task('default', build.serial(build.parallel(tscCmd, lintCmd), apiExtractor, mocha));
build.initialize(require('gulp'));