Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
describe(cmd, () => {
fancy
.retries(CI ? 1 : 0)
.do(() => {
switch (cmd) {
case 'base':
build(cmd, name)
sh.exec('yarn test')
break
case 'plugin':
build(cmd, name)
sh.exec('yarn test')
sh.exec('node ./bin/run hello')
sh.exec('node ./bin/run')
sh.exec('node ./bin/run --help')
sh.exec('npm pack --unsafe-perm')
break
case 'single':
context('when file does not end with .sol', () => {
fancy
.do(async () => {
const path = __dirname + '/../../templates/contract/example.notsol';
await compileSol(path, ({ solcVersion: '0.4.12' } as any) as Option);
})
.catch('it is not a solidity file.')
.it('should throw not sol file error');
});
});