Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TroveManagerTest: make use of hardhat’s loadFixture()
This is a test of migrating to loadFixture() using TroveManagerTest only for now. The migration consists of converting beforeEach() into a fixture, which is recommended by Hardhat mostly for performance reasons [1]. On my computer, this test went from ~54s to ~18s (~67% faster). Before: pnpm test test/TroveManagerTest.js 53.90s user 6.48s system 145% cpu 41.495 total After: pnpm test test/TroveManagerTest.js 17.98s user 1.81s system 138% cpu 14.309 total [1] https://hardhat.org/hardhat-runner/docs/guides/test-contracts#using-fixtures
- Loading branch information