{"size": 539, "ext": "js", "max_stars_repo_path": "tests/scanDir/this.test.js", "max_stars_repo_name": "sw-yx/netlify-plugin-rss", "max_stars_repo_stars_event_min_datetime": "2020-03-15T02:14:16.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-28T18:46:11.000Z", "max_issues_repo_path": "tests/scanDir/this.test.js", "max_issues_repo_name": "sw-yx/netlify-plugin-rss", "max_issues_repo_issues_event_min_datetime": "2020-05-05T10:20:52.000Z", "max_issues_repo_issues_event_max_datetime": "2020-06-17T10:04:16.000Z", "max_forks_repo_path": "tests/scanDir/this.test.js", "max_forks_repo_name": "sw-yx/netlify-plugin-rss", "max_forks_repo_forks_event_min_datetime": "2020-03-18T04:43:42.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-26T21:14:19.000Z"}
{"max_stars_count": 28, "max_issues_count": 5, "max_forks_count": 5, "avg_line_length": 25.6666666667, "max_line_length": 97, "alphanum_fraction": 0.6716141002}
const fs = require('fs');
const path = require('path');

// resolve all files
const PUBLISH_DIR = path.join(__dirname, 'publishDir');

// debug
// console.log({ publishDirPath, manifest });

// actual test
const pluginCore = require('../../pluginCore.js');
test('scanDir works', async () => {
  const allHtml = await pluginCore.scanDir({
    dirToScan: '/',
    PUBLISH_DIR,
    debugMode: false, // to future readers - turn this true to make pluginCore log out more stuff
    testMode: true
  });
  expect(allHtml).toMatchSnapshot();
});
