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

[Tests] Unit Tests Guide #171

Merged
merged 13 commits into from
Mar 26, 2024
Merged

[Tests] Unit Tests Guide #171

merged 13 commits into from
Mar 26, 2024

Conversation

benjamin852
Copy link
Contributor

Added unit tests for some of our examples to serve as a guide for writing tests with axelarjs. Tests include

  1. CallContract
  2. CallContractWithToken
  3. NftLinker

Also added readme for the canonical ITS token example.

@benjamin852 benjamin852 changed the title [Tests] Added unit tests for callContract/callContractWithToken/NftLinker + ITS canoncai readme [Tests] Unit Tests Guide Feb 28, 2024
@@ -36,6 +36,9 @@
"uuid": "^8.3.2"
},
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^1.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these test should be deps, not dev deps, but open to discussion. My definition of dev deps are things that you need if you are WORKING on the examples. Every developer that wants to USE the examples will need these deps, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I move hardhat-chai-matchers to dependencies would it no make sense at that point to move chai and hardhat-ethers as well?

@benjamin852 benjamin852 force-pushed the test/testing-examples branch from 38d985c to 567f80d Compare March 26, 2024 14:23
@benjamin852 benjamin852 merged commit 9874cd8 into main Mar 26, 2024
4 checks passed
@benjamin852 benjamin852 deleted the test/testing-examples branch March 26, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants