text: import {promisify} from 'util';
  import {execFile as ef} from 'child_process';
  
  const execFile = promisify(ef);
  const binFile = './bin/index.js';
  
  describe('CLI', function () {
    this.timeout(8000);
    it('should log help', async function () {
      const {stdout} = await execFile(binFile, ['-h']);
      expect(stdout).to.contain(
        'Check npm package dependencies'
      );
    });
  
    it('should log help (no args)', async function () {
      const {stdout} = await execFile(binFile);
  
      expect(stdout).to.contain(
        'Check npm package dependencies'
      );
    });
  
    it('should execute test command', async function () {
      this.timeout(150000);
      const {stdout} = await execFile(binFile, ['install', '--test']);
      expect(stdout).to.contain(
        'Packages'
      ).and.to.contain(
        'size'
      );
    });
  });
  