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

feat: refine unit test setup and add utils #2165

Open
3 tasks
weboko opened this issue Oct 7, 2024 · 0 comments
Open
3 tasks

feat: refine unit test setup and add utils #2165

weboko opened this issue Oct 7, 2024 · 0 comments
Labels
test Issue related to the test suite with no expected consequence to production code

Comments

@weboko
Copy link
Collaborator

weboko commented Oct 7, 2024

Problem

Presently our setup can be more efficient and a lot of config duplications can be removed.

Solution

We should revisit our karma, chai setup.
Organize setup scripts for them and share between packages.

TODO

  • move chai/mocha dependencies to root package.json;
  • add root configuration for them with needed plugins such as chai-as-promised;
  • unit tests have shared code that generates mocked objects for libp2p primitives - we need to decouple it to a new package @waku/test-utils (example of such utils - here);
@weboko weboko added the test Issue related to the test suite with no expected consequence to production code label Oct 7, 2024
@weboko weboko added this to Waku Oct 7, 2024
@weboko weboko moved this to Triage in Waku Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Issue related to the test suite with no expected consequence to production code
Projects
Status: To Do
Development

No branches or pull requests

1 participant