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: [OI-255] porting to vitest #402

Merged
merged 2 commits into from
Oct 2, 2024
Merged

Conversation

mmoio
Copy link
Collaborator

@mmoio mmoio commented Oct 2, 2024

List of Changes

  • adds vitest and related dependencies
  • adds dotenv
  • vitest config file
    • 80% coverage required
    • loads env from .env.test.local file
    • execute in run (no-watch) and silent mode
  • removes jest config and references
  • refactored existing tests to use vitest
  • updated ts and eslint config
  • adds coverage to gitignore

Motivation and Context

This PR replaces jest with vitest as a testing framework.
vitest is now the supported testing framework @pagopa-technology-radar

How Has This Been Tested?

yarn test
yarn test:coverage

@mmoio mmoio requested a review from sebbalex October 2, 2024 07:01
@mmoio mmoio self-assigned this Oct 2, 2024
@mmoio mmoio requested a review from a team as a code owner October 2, 2024 07:01
- adds vitest and related dependencies
- vitest config file
  - 80% coverage required
  - loads env from .env.test.local file
  - execute in run (no-watch) and silent mode
- removes jest config and references
- refactored existing tests to use vitest
- updated ts and eslint config
- adds coverage to gitignore
@mmoio mmoio force-pushed the feat/OI-255-vitest-porting branch from 88f4ffd to af2bd43 Compare October 2, 2024 08:20
@mmoio mmoio requested a review from sebbalex October 2, 2024 08:24
@sebbalex sebbalex merged commit ac600c9 into main Oct 2, 2024
6 checks passed
@sebbalex sebbalex deleted the feat/OI-255-vitest-porting branch October 2, 2024 08:30
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