Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const generateTestApp = async ({ appName, database }) => {
const scope = {
database: {
settings: database,
options: {},
},
rootPath: path.resolve(appName),
name: appName,
// disable quickstart run app after creation
runQuickstartApp: false,
// use pacakge version as strapiVersion (all packages have the same version);
strapiVersion: require('strapi/package.json').version,
debug: false,
quick: false,
uuid: undefined,
deviceId: null,
// use yarn if available and --use-npm isn't true
useYarn: true,
installDependencies: false,
strapiDependencies: [
'strapi',
'strapi-admin',
'strapi-utils',
'strapi-plugin-content-type-builder',
'strapi-plugin-content-manager',
'strapi-plugin-users-permissions',
'strapi-plugin-email',
'strapi-plugin-upload',