@nielse63/generate-tests
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.3 • Public • Published

    @nielse63/generate-tests

    Automatically generate jest specs for uncovered source files

    Installation

    npm -g i @nielse63/generate-tests

    Usage

    CLI

    $ generate-tests --help
    
    Usage: generate-tests [options] [files]
    
    Automatically generate jest specs for uncovered source files
    
    Arguments:
      files          Glob pattern to src files (default: "**/src/**.{js,ts}")
    
    Options:
      -q, --quiet    Disable console output (default: false)
      --debug        Print debug output (default: false)
      -V, --version  output the version number
      -h, --help     display help for command

    API

    import generateTests from '@nielse63/generate-tests';
    
    const path = '/path/to/project';
    const pattern = '**/src/**.{js,ts}';
    const options = {
      quiet: false,
      debug: false,
    };
    
    await generateTests(path, pattern, options);

    Install

    npm i @nielse63/generate-tests

    DownloadsWeekly Downloads

    2

    Version

    0.0.3

    License

    ISC

    Unpacked Size

    18.2 kB

    Total Files

    6

    Last publish

    Collaborators

    • nielse63