Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeAll(done => {
fs.removeSync(path.join(ocComponentPath, "_package"));
cli.package(
{
componentPath: ocComponentPath
},
(err, compiledInfo) => {
if (err) {
return done(err);
}
registry = new Registry({
local: true,
discovery: true,
verbosity: 0,
path: path.join(__dirname, "../../acceptance-components"),
port: registryPort,
baseUrl: registryUrl,
env: { name: "local" },