-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Update Vitest #3867
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
Update Vitest #3867
Conversation
| await resizeHandle.hover({ | ||
| position: { x: 5, y: 5 } | ||
| }); | ||
| await page.mouse.move(x + 5, y + 5); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gives more accurate dimensions
| name: 'browser', | ||
| include: ['test/browser/**/*.test.*'], | ||
| browser: { | ||
| ui: false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
headed tests fail without it. Thanks to @nstepien
| .vitest-attachments | ||
|
|
||
| __traces__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do each one contain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://vitest.dev/guide/browser/trace-view
https://vitest.dev/config/#attachmentsdir (not sure what these files are used for)
Co-authored-by: Nicolas Stepien <[email protected]>
Co-authored-by: Nicolas Stepien <[email protected]>
This reverts commit 41445b1.
* Vitest 4 beta * Use SHA * Set up workflow * first test * run workflow on lael * format * Tweak * manually run workflow * typo * main * Tweak * fix syntax * revert * Fix step * Update command * Do we need this command? * Revert "Do we need this command?" This reverts commit 7a66594. * Does this remove label? * set env * try `actions-ecosystem/action-remove-labels` * New approach * Does this work * Update visual regression screenshots Co-authored-by: amanmahajan7 * Does this work? * Try this * Update visual regression screenshots Co-authored-by: amanmahajan7 * Simplify * remove name * Update visual regression screenshots Co-authored-by: amanmahajan7 * Tweaks * Fix permissions * Tweak * test * Does this work? * Update screenshots Co-authored-by: amanmahajan7 * Tweaks * Tweak coverage * Tweak coverage * Does this work? * Does this work? * Does this work? * Does this work? * Fix watch * different coverage directories? * Fix typo * Another * `beta.12` * Run VRT in FF also * install ff * Update screenshots Co-authored-by: amanmahajan7 * Fix tests * update package * update test * Update screenshots Co-authored-by: amanmahajan7 * add formatter * Update screenshots Co-authored-by: amanmahajan7 * pin * Still need this :( * unpin * Update deps * Import from `vitest/browser` * update deps * Add back clsx * Fix biome/eslint * update deps * Use async render * Move async * Fix eslint * Enable tracing * Remove VRT changes * Revert .gitignore changes * Fix types * fix 2 tests * set scale * Fix tests for now * Revert commands * typo * Update tsconfig.test.json Co-authored-by: Nicolas Stepien <[email protected]> * Update package.json Co-authored-by: Nicolas Stepien <[email protected]> * Revert "Update package.json" This reverts commit 41445b1. * remove @vitest/browser --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Nicolas Stepien <[email protected]> Co-authored-by: Nicolas Stepien <[email protected]>
https://voidzero.dev/posts/announcing-vitest-4
https://vitest.dev/guide/migration.html
Had to add special cases for FF due to scale being set to
0.6666666vitest-dev/vitest#8783