Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mochajs/mocha Loading
base: v10.5.0
Choose a base ref
...
head repository: mochajs/mocha Loading
compare: v10.5.1
Choose a head ref
  • 3 commits
  • 10 files changed
  • 3 contributors

Commits on Jun 25, 2024

  1. fix: Add error handling for nonexistent file case with --file option (#…

    …5086)
    
    * feat: handle nonexistent files passed to --file
    
    - added error handling when using the --file flag to do it the way
      --require does
    - added a test to assert that we throw the same type of error
    
    * refactor: remove path.resolve()
    
    - require.resolve() by Node.js follows a Node.js module resolution algo
      which includes checking if the resolved path actually exists on the
      file system.
    
    * add comment to new code in collect-files.js
    
    * fix: add back absolute path resolving
    
    * refactor: log warning and remove call stack
    
    * revert changes to bin/mocha.js
    
    * improve test case
    
    * throw error and have handler work with it
    
    * change collectFiles to return object
    
    * clean up
    
    * exit mocha immediately on missing file
    
    * new log message
    
    * add tests
    
    * code quality improvements
    
    * add comments
    
    * docs: update to new link name
    
    * pass mocha instance to helper function
    
    ---------
    
    Co-authored-by: Pelle Wessman <[email protected]>
    khoaHyh and voxpelli committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    dbe229d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    545b66d View commit details
    Browse the repository at this point in the history
  3. Release v10.5.1

    JoshuaKGoldberg committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    103c56b View commit details
    Browse the repository at this point in the history
Loading