-
Notifications
You must be signed in to change notification settings - Fork 18
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
Hardhat tests: use loadFixture() #89
Merged
Merged
Changes from 16 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
7723169
TroveManagerTest: make use of hardhat’s loadFixture()
bpierre 9ceffaa
Fixtures: add BorrowerOperationsTest, TroveManager_LiquidationRewards…
bpierre 717051b
Fixtures: add FeeArithmeticTest
bpierre d89326f
Merge main
bpierre 0018bde
Merge main
bpierre 4a67996
Fixtures: StabilityPoolTest, PoolsTest
bpierre 6fc3f62
Merge branch 'main' into test-fixtures
bpierre 8853cc5
Merge branch 'main' into test-fixtures
bpierre 57b719a
Fix failing tests by forcing a block to be mined after funding accounts
bpierre 021eec5
createDeployAndFundFixture(): allow to pass mock contracts
bpierre 13fc17f
StabilityPoolTest: move back to forEach()
bpierre 21a899f
fundAccounts(): make sure its promises are awaited
bpierre 76a49c0
Move more tests to the beforeEach() + loadFixture() approach
bpierre 889d5b7
Remove cleanup changes (reduce the PR diff size)
bpierre 262dd70
Run tests in parallel
bpierre 5c1967d
Merge branch 'main' into test-fixtures
bpierre cb1f4e8
Remove more log from output
bpierre db1d666
fundAccounts: remove unused code
bpierre 545098f
Align coding style
bpierre 2b9b332
Merge main
bpierre 1091e3b
Minor tweak
bpierre c5e5c1d
Merge branch 'main' into test-fixtures
bpierre c434f81
Merge branch 'main' into test-fixtures
bpierre c093ac2
Merge branch 'main' into test-fixtures
bpierre 95eed5e
Remove debugging code
bpierre 777bd3e
Merge branch 'main' into test-fixtures
bpierre 77b757b
Add missing imports
bpierre 4aac635
Remove output from tests
bpierre 30c1b78
test: add missing import
danielattilasimon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the
describe("test")
but kept thetestCorpus()
call to not mess up with the indentation in this PR.