Skip to content

chore(visitor-keys): migrate from jest to vitest #10773

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

Conversation

aryaemami59
Copy link
Contributor

PR Checklist

Overview

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @aryaemami59!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

Copy link

netlify bot commented Feb 4, 2025

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit e7ad033
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/67f4280f18531200089b7b90
😎 Deploy Preview https://deploy-preview-10773--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 92 (🟢 up 4 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 98 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

nx-cloud bot commented Feb 4, 2025

View your CI Pipeline Execution ↗ for commit e7ad033.

Command Status Duration Result
nx run-many --target=build --exclude website --... ✅ Succeeded 4s View ↗
nx run-many --target=clean ✅ Succeeded 10s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-07 20:51:21 UTC

Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.12%. Comparing base (ef7e6de) to head (e7ad033).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10773      +/-   ##
==========================================
+ Coverage   88.03%   88.12%   +0.09%     
==========================================
  Files         470      470              
  Lines       16801    16929     +128     
  Branches     4745     4746       +1     
==========================================
+ Hits        14790    14919     +129     
+ Misses       1664     1663       -1     
  Partials      347      347              
Flag Coverage Δ
unittest 88.12% <ø> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aryaemami59 aryaemami59 force-pushed the chore/visitor-keys-vitest-migration branch 18 times, most recently from 81bf89a to 0620b48 Compare February 10, 2025 17:55
@aryaemami59 aryaemami59 force-pushed the chore/visitor-keys-vitest-migration branch 6 times, most recently from 62a825e to e14025d Compare February 15, 2025 12:23
@JoshuaKGoldberg
Copy link
Member

Marking as blocked on #10582. We'd like to normalize test scripts & coverage calculations before making the jump in individual packages.

@JoshuaKGoldberg JoshuaKGoldberg added the blocked by another PR PRs which are ready to go but waiting on another PR label Feb 25, 2025
@aryaemami59 aryaemami59 force-pushed the chore/visitor-keys-vitest-migration branch from b18bd2f to 008698e Compare March 16, 2025 13:10
@43081j
Copy link
Contributor

43081j commented Apr 1, 2025

this one looks good to me 👍

Comment on lines +14 to +16

vite: false,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't change the result but since we have vite in our devDependencies, the vite plugin for knip still infers that that this is a vite project which is not accurate, on top of that knip has to do a little bit less work which makes things a teeny tiny bit faster.

JoshuaKGoldberg
JoshuaKGoldberg previously approved these changes Apr 7, 2025
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! Just the one comment/question on the vitest property and I think we're good to merge. 🚀

@JoshuaKGoldberg JoshuaKGoldberg added the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Apr 7, 2025
@JoshuaKGoldberg JoshuaKGoldberg merged commit d1f57a7 into typescript-eslint:main Apr 10, 2025
57 of 59 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants