const shelljs = require('shelljs') const snapshot = require('snap-shot-it') describe('prepare-release-artifacts', () => { it('runs expected commands', function () { this.timeout(10_000) const stdout = shelljs.exec('yarn prepare-release-artifacts --dry-run --sha 57d0a85108fad6f77b39db88b8a7d8a3bfdb51a2 --version 1.2.3') snapshot(stdout) }) it('looks up the npm package under --branch', function () { this.timeout(10_000) const stdout = shelljs.exec('yarn prepare-release-artifacts --dry-run --sha 57d0a85108fad6f77b39db88b8a7d8a3bfdb51a2 --version 1.2.3 --branch v15') snapshot(stdout) }) })