Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alias lookupFiles, loadRc, loadPkgRc and loadOptions to lib/cli module; fixes #4398 #4419

Merged
merged 3 commits into from Aug 28, 2020

Commits on Aug 25, 2020

  1. alias lookupFiles, loadRc, loadPkgRc and loadOptions to lib/cli module;

    fixes #4398
    
    - fixes API documentation for all of these (and `module:lib/cli.main`) via JSDoc aliasing
    - aliases `lib/cli/cli.js` to `module:lib/cli`; `module:lib/cli/cli` is no longer a thing
    - the `lib/cli/options.js` and `lib/cli/lookup-files.js` _modules_ (not necessarily their _contents_) are now private
    
    example usage:
    
    ```js
    const {loadRc, loadPkgRc, loadOptions, lookupFiles} = require('mocha/lib/cli');
    ```
    boneskull committed Aug 25, 2020
    Copy the full SHA
    f1acd99 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2020

  1. restore and deprecate lookupFiles() in lib/utils

    lookupFiles() broke (moved) in version v8.1.0, this returns it and issues a soft deprecation warning.
    in the browser, this function should not be called, but if it is, an `ERR_MOCHA_UNSUPPORTED` `Error` is thrown
    boneskull committed Aug 26, 2020
    Copy the full SHA
    1807e05 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2020

  1. Copy the full SHA
    72346e3 View commit details
    Browse the repository at this point in the history