text: const path = require('path');
  const test = require('ava');
  // eslint-disable-next-line import/no-extraneous-dependencies
  const m = require('nm-prune');
  
  let fileCountWithoutLicenses = 0;
  test('sanity test', t =>
    m.prep(process.cwd()).then((info) => {
      const {
        fileCount,
        dirCount,
        prunePath,
        usingCustomPrune,
        modulePath,
        files,
        dirs,
        size,
      } = info;
      t.is(typeof info, 'object');
      t.is(modulePath, path.join(__dirname, 'node_modules'));
      t.is(usingCustomPrune, false);
      t.pass(prunePath.includes('default-prune.json'));
      t.pass(size > 1000);
      t.pass(Array.isArray(files));
      t.pass(Array.isArray(dirs));
      t.pass(fileCount > 100);
      t.pass(dirCount > 50);
      fileCountWithoutLicenses = fileCount;
    }));
  
  test('sanity test with license pruning', t =>
    m.prep(process.cwd(), { pruneLicense: true, }).then((info) => {
      const {
        fileCount,
        dirCount,
        prunePath,
        usingCustomPrune,
        modulePath,
        files,
        dirs,
        size,
      } = info;
      t.is(typeof info, 'object');
      t.is(modulePath, path.join(__dirname, 'node_modules'));
      t.is(usingCustomPrune, false);
      t.pass(prunePath.includes('default-prune.json'));
      t.pass(size > 1000);
      t.pass(Array.isArray(files));
      t.pass(Array.isArray(dirs));
      t.pass(fileCount > fileCountWithoutLicenses);
      t.pass(dirCount > 50);
    }));
  