Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var fs = require('fs');
var url = require('url');
var cspMiddleware = require('@ui5/server').middleware.csp;
module.exports = function(grunt, config) {
// determine the testsuite name and lookup the sap.ui.core library
// to be a bit more dynamic for the livereload middleware
var testsuiteName = config.testsuite && config.testsuite.name || testsuiteName;
var sapUiCoreBasePath = 'src/sap.ui.core';
config.allLibraries.forEach(function(oLib, i) {
if (oLib.name === 'sap.ui.core') {
sapUiCoreBasePath = oLib.path;
}
});
var sapUiTestsuiteBasePath = config.testsuite.path;
var sapUiBuildtime = config.buildtime;