+
Skip to content

Unit tests setup with Vitest #423

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

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Conversation

Psycarlo
Copy link
Contributor

👋🏼 Let's get Coracle with a good test coverage! 💯

In this PR:

  • Use vitest for unit and integration testing;
  • unit tests are inside the folder tests/unit;
  • The tests/unit folder mirrors the src folder;
  • Script npm run test:unit runs only the unit tests. Script npm run test runs all types of tests;
  • Unit test examples on sortEventsAsc and sortEventsDesc functions;
  • Test utils under tests/utils;
  • Added README.md tests documentation.

Future work:

  • Add more unit tests;
  • Add integration tests;
  • Run tests via pipeline (when pr to master in opened);
  • Consider Playwright over cypress.

Let me know what you think 👍🏼

@staab staab merged commit 780a7ae into coracle-social:master Sep 23, 2024
@Psycarlo Psycarlo deleted the feat/setup-tests branch September 23, 2024 16:46
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.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载