Nickel Plated Moose

    @ponticus/escomplex-test-data

    0.0.1 • Public • Published

    @ponticus/escomplex-test-data

    Provides shared test data resources for all typhonjs-escomplex repos.

    This repo is included in devDependencies linked directly to GitHub such as:

      "devDependencies": {
        "@ponticus/escomplex-test-data": "git+https://git@github.com/gabrielcsapo/packages/@ponticus/escomplex-test-data.git"
      },
    

    The following files are available:

    ./files/large-project/results/results.json: A serialized ProjectResult of @ponticus/escomplex-project and dependencies.

    ./files/large-project/results/results-no-reports.json: A serialized ProjectResult of @ponticus/escomplex-project and dependencies without ModuleReports serialized.

    ./files/large-module/report/report.json: A serialized ModuleReport of backbone-es6-> Collection.js.

    ./files/large-module/src/Collection.js: The JS source that generated large-module report.json.

    An examples follows on how to load and parse files for use:

    import { ProjectResult } from '@ponticus/escomplex-commons';
    
    // You can either use `fs`.
    // const largeProjectJSON = 
    //  JSON.parse(fs.readFileSync('./node_modules/@ponticus/escomplex-test-data/files/large-project/results/results.json', 'utf8'));
    
    // Or for JSON files simply `require` it.
    const largeProjectJSON = require('@ponticus/escomplex-test-data/files/large-project/results/results');
    
    const projectResult = ProjectResult.parse(largeProjectJSON);
    
    console.log(projectResult.toFormat('markdown'));

    Install

    npm i @ponticus/escomplex-test-data

    DownloadsWeekly Downloads

    0

    Version

    0.0.1

    License

    none

    Unpacked Size

    3.6 MB

    Total Files

    62

    Last publish

    Collaborators

    • gabrielcsapo