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

Run tests twice #2140

Merged
merged 2 commits into from Dec 15, 2021
Merged

Run tests twice #2140

merged 2 commits into from Dec 15, 2021

Commits on Dec 10, 2021

  1. Fix reruns of test in scripts

    This is a mocha caching and cleanup issue addressed here: mochajs/mocha#2783.
    
    Multiple runs of the test task within a hardhat script are now enabled. The resolution is `mocha.dispose` at the end of a run to clear up state.
    
    The mocha dispose method was added in mocha@7.2.0 but the @types/mocha doesn't reflect it till `9.0.0`. This commit:
    
    * bumps mocha as a dep in hardhat-core to 7.2.0 to be explicit
    * bumps mocha as a dev-dep everywhere else to 7.2.0 for consistency in our local dev environment
    * bumps @types/mocha to 9 in dev-deps in all packages to allow use of dispose and consistency across packages - no code changes are required to support this. Note that the sample typescript project already provides a default @types/mocha on version 9.0.0
    
    Relates to #1720
    kanej committed Dec 10, 2021
    Configuration menu
    Copy the full SHA
    80a4437 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2021

  1. Configuration menu
    Copy the full SHA
    7724d0f View commit details
    Browse the repository at this point in the history