Repository navigation
chore(deps): update vitest monorepo to v2 (major) - #39
Merged
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #39 +/- ##
==========================================
- Coverage 74.08% 71.92% -2.17%
==========================================
Files 90 90
Lines 4060 2810 -1250
Branches 292 208 -84
==========================================
- Hits 3008 2021 -987
+ Misses 1052 789 -263 ☔ View full report in Codecov by Sentry. |
renovate
Bot
force-pushed
the
renovate/major-vitest-monorepo
branch
from
August 21, 2024 12:23
3f5e669 to
1dc3c70
Compare
renovate
Bot
force-pushed
the
renovate/major-vitest-monorepo
branch
from
September 12, 2024 15:09
1dc3c70 to
c84c850
Compare
renovate
Bot
force-pushed
the
renovate/major-vitest-monorepo
branch
from
September 13, 2024 18:53
c84c850 to
645f230
Compare
RedStar071
requested review from
RedStar071
and removed request for
RedStar071
September 22, 2024 13:42
RedStar071
added a commit
that referenced
this pull request
Jul 27, 2026
## Summary
- Replace `blacksmith-*vcpu-ubuntu-2404[-arm]` runner labels with the
equivalent `depot-ubuntu-24.04[-arm]-{4,8}` labels across
CI/autofix/update-tlds workflows.
- Pass `depotProject: 10f7gg2mqd` to the shared
`reusable-publish-image.yml` workflow (now Depot-based) for the Docker
publish jobs.
## Test plan
- [ ] Confirm the Depot GitHub App is installed on the
`wolfstar-project` org
- [ ] Watch CI on this PR to confirm jobs are picked up by Depot runners
- [ ] Watch a Docker publish run to confirm the image builds/pushes via
Depot
<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/wolfstar-project/codesmith/wolfstar/pr/227"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need. Autofix is enabled.</sup>
<!-- codesmith:autofix:enabled -->
<!-- /codesmith:footer -->
<!-- greptile_comment -->
<details><summary><h3>Confidence Score: 5/5</h3></summary>
The PR appears safe to merge.
No blocking failure remains.
</details>
<sub>Reviews (2): Last reviewed commit: ["Merge branch 'main'
into
ci/migrate-blac..."](b13f821)
| [Re-trigger
Greptile](https://app.greptile.com/api/retrigger?id=47421015)</sub>
<!-- /greptile_comment -->
RedStar071
added a commit
that referenced
this pull request
Oct 7, 2026
### ❓ Type of change - [x] ✨ New feature - [x]⚠️ Breaking change ### 📚 Description Includes the zalgo rule of #260, so merge that one first. A server could only configure one rule per type: one word filter, one link filter, and so on, each with a single set of actions and exemptions. This brings what Dyno does: several named rules, for example a word filter that only deletes and a second one, with other words, that bans. Rules are now rows of `GuildAutoModerationRule` instead of settings. A server has up to 25, as many of one type as it wants, each with its own options, actions, threshold and exempt roles and channels. `/automod create|edit|delete|list|show|add|remove|ignore` manages them, and so do `GET/POST /guilds/:guild/automod/rules` and `GET/PATCH/DELETE /guilds/:guild/automod/rules/:rule` for the dashboard. Things a reviewer should know: - When a message infringes several rules of the same type, only the first enabled one is applied. Rules of different types still all run, as before. - The `Mentions` rule (`automodMentions*` and its overrides table) had no listener, so it is dropped rather than migrated. - The cap of 25 rules and of 200 entries per list are my picks. Say if you want other numbers. - Writes are queued per server and read the rule from the database first, so two edits at once no longer undo each other within a process. Across shards the window is one read and one write wide; the unique index on the name covers the case that would leave a rule unreachable. - Not sure about `/automod ignore` toggling. Separate `ignore`/`unignore` subcommands would be clearer, but cost command size. ###⚠️ Breaking Changes - The `/automod-<type>` commands are gone, replaced by `/automod`. - The `automod<Type>*` keys are gone from the settings, so from `GET/PATCH /guilds/:guild/settings` too. The dashboard has to use the new routes. `automodChannel` and `automodTrackNative` stay. ### 📝 Migration Two Prisma 8 migrations, on top of the baseline and the zalgo one from #260. The tables of the old rules are `@@control(external)`, so the drop is a migration of its own, not part of the first. ```sh # 1. Before the deploy: the table, the enum and the unique index on the lowercase name, and one rule per enabled # configuration of the old tables. The old tables stay, so the build that is running keeps working and a rollback has them. prisma db migrate --db "$DATABASE_URL" --to 20261007T1312_add_automod_rules # 2. Once the deploy is verified: drops the old tables (and the zalgo one). There is no way back after it. prisma db migrate --db "$DATABASE_URL" ``` Rules edited with the old commands between the two steps are not carried over. Then `stars commands deploy`. > 🤖 AI disclosure: [Wolfstar Agent Kit](https://github.com/wolfstar-project/wolfstar-agent-kit) modified this description. [My AI open-source policy](https://harlanzw.com/blog/ai-in-open-source). <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=76196422"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a>Confidence Score: 3/5</h2> <!-- greptile-risk --> Not safe to merge until concurrent edits preserve both successful changes and migrated filters retain their existing entries; the exemption-list display problem is non-blocking. <!-- greptile_confidence_score:3 --> <sub>Reviews (1) · Last reviewed commit: ["Merge branch 'feat/automod-zalgo' into f..."](a4016c7) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_expert&utm_medium=github&utm_campaign=code_reviews&utm_content=wolfstar-project/wolfstar)</sub> <!-- /greptile_comment -->
RedStar071
added a commit
that referenced
this pull request
Oct 12, 2026
### 🔗 Linked issue Resolves #275 ### ❓ Type of change - [ ] 📖 Documentation - [ ] 🐞 Bug fix - [ ] 👌 Enhancement - [x] ✨ New feature - [ ] 🧹 Chore - [ ]⚠️ Breaking change ### 📚 Description Setting the bot up in a second server meant redoing every setting and every auto-moderation rule by hand, and there was no copy to go back to after changing a lot. `/settings server export` answers with a JSON file of the settings that do not depend on the server and its rules, and `/settings server import` shows what a file would change and asks before it writes anything. What a reviewer should look at: - Roles, channels, users and permission nodes stay out of the file, and so do the exempt roles and channels of the rules. An import leaves them as the server has them. A setting that is not one of the file is refused instead of skipped, so a hand-written file never looks like it did something it did not. - A file with one problem is refused whole, with all its problems. Settings and rules are written in one database transaction, worked out again under their locks when the administrator confirms. - With an `automod` section, the rules of the server become the ones of the file. A rule with the same name and type is edited in place and keeps its ID and its exempt roles and channels. Settings the file does not have are left alone. Questions: - **`/settings server` is now a group.** Discord does not allow a subcommand that has subcommands, so the menu moved to `/settings server menu` and `export` and `import` sit next to it, as the issue says. Would you rather keep `/settings server` as the menu and have `/settings export` and `/settings import`? - **Replace or merge the rules?** I went with replace, since a restore of a backup should give back the server it was taken from. A merge would keep the rules the file does not name. > 🤖 AI disclosure: [Wolfstar Agent Kit](https://github.com/wolfstar-project/wolfstar-agent-kit) modified this description. [My AI open-source policy](https://harlanzw.com/blog/ai-in-open-source). <!-- greptile_comment --> <!-- greptile_summary --> <h2><a href="https://app.greptile.com/api/retrigger?id=78640607"><picture><source media="(prefers-color-scheme: dark)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source media="(prefers-color-scheme: light)" srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img alt="Retrigger" src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2" align="right"></picture></a>Confidence Score: 5/5</h2> <!-- greptile-impact-verdict --> No blocking findings remain in this review; the outstanding repeated-click issue affects the displayed result rather than the import itself and is non-blocking. <!-- greptile_confidence_score:5 --> <sub>Reviews (4) · Last reviewed commit: ["Merge branch 'V7' into feat/settings-exp..."](5fe65e0) · [Reviewed by Greptile](https://www.greptile.com/?utm_source=greptile_expert&utm_medium=github&utm_campaign=code_reviews&utm_content=wolfstar-project/wolfstar)</sub> <!-- /greptile_comment -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.6.0->^2.1.1^1.6.0->^2.1.1Release Notes
vitest-dev/vitest (@vitest/coverage-v8)
v2.1.1Compare Source
🐞 Bug Fixes
View changes on GitHub
v2.1.0Compare Source
This release makes another big change to the Browser Mode by introducing locators API:
You can use either vitest-browser-vue, vitest-browser-svelte or vitest-browser-react to render components and make assertions using locators. Locators are also available on the
pageobject from@vitest/browser/context.🚀 Features
userEvent.uploadin playwright provider - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6442 (cf148)--inspect- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6433 (0499a)--inspect-brk- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6434 (7ab0f)--exclude-after-remap- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6309 (5932a){ spy: true }instead of a factory - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6289 (95f02)vi.advanceTimersToNextFrame- by @bnjm and @sheremet-va in https://github.com/vitest-dev/vitest/issues/6347 (8ff63)🐞 Bug Fixes
indexfile - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6266 (081cf)expect.getState().testPathalways returns correct path - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6472 (ac698)vitestand@vitest/*versions don't match - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6317 (e662c)vitenodefor uncovered files - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6044 (da52d)performance.nowinstead ofDate.nowfor duration - by @LuciNyan in https://github.com/vitest-dev/vitest/issues/6382 (fe489)toMatchInlineSnapshotupdates at the same location - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6332 (1606f)typecheck.includeoverlaps withinclude- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6256 (153ff)View changes on GitHub
v2.0.5Compare Source
🚀 Features
🐞 Bug Fixes
testNamePatternadds leading space - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6186 (073a5)afterEachcleanup hooks in node entrypoint - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6192 (e6fbc)defineProjectanddefineWorkspacetypes - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6198 (8cd82)node:*imports in__mocks__folder - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6204 (a48be)View changes on GitHub
v2.0.4Compare Source
🐞 Bug Fixes
require- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/6159 (807a2)*.ctsfiles - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6189 (5da45)thresholds.<glob>.100option - by @thor-juhasz and @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6174 (f6845)mockImplementationfor function overload and unions - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6181 (7a75b)View changes on GitHub
v2.0.3Compare Source
🚀 Features
🐞 Bug Fixes
--inspect-brkstop on Windows - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/6110 (f8519)vi.spyOntoMockInstanceof function overload - by @hi-ogawa in https://github.com/vitest-dev/vitest/issues/6086 (e9f9a)View changes on GitHub
v2.0.2Compare Source
v2.0.1Compare Source
🐞 Bug Fixes
View changes on GitHub
v2.0.0Compare Source
Vitest 2.0 is here! This release page lists all changes made to the project during the beta. For the migration guide, please refer to the documentation.
🚨 Breaking Changes
--segfault-retry- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5514 (ed60e)threadssegfaults. Our current recommendation is to use the new defaultforkspool instead.onTestFinishedhook. This can make your tests run a little bit slower.coverage.ignoreEmptyLinesby default - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5543 (31994)locationfield pointed to the error location instead of the test location. Now it is aligned with jest and contains thelineandcolumnof a test function, but requiresincludeTaskLocationto be enabled.poolto'forks'- by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5047 (7f8f9)threadspool: https://vitest.dev/guide/improving-performance.html#pool--merge-reportsto support coverage - by @AriPerkkio in https://github.com/vitest-dev/vitest/issues/5736 (b7438)spy.mock.returns. If the function is async or returns a promise, it will always succeed and have aPromiseinresults. To make migration easier, we introducedspy.mock.settledResultsthat unwraps promises andexpect().toHaveResolved()matcher that accepts unwrapped value.jsonoutput - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5802 (dd754)indexScriptstoorchestratorScriptsin the browser config - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5842 (49f34)poolAPI - now requirescollectTestsmethod alongsiderunTests.🚀 Features
--output-json- by @Joristdh in https://github.com/vitest-dev/vitest/issues/5745 (0766b)parseAst,parseAstAsyncfrom vite - by @sheremet-va (f645e)clickevent - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5777 (839c3)page.screenshotmethod - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5853 (81c42)userEventmethods, addfillanddragAndDropevents - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5882 (4dbea)expect.dommethod and bundlejest-dommatchers with@vitest/browser- by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5910 (3a96a)tripleClickto interactive api - by @userquin in https://github.com/vitest-dev/vitest/issues/5987 (200a4)test.for- by @hi-ogawa and @sheremet-va in https://github.com/vitest-dev/vitest/issues/5861 (c2380)🐞 Bug Fixes
--excludeoption - by @fregante in https://github.com/vitest-dev/vitest/issues/5782 (d6700)project.providetype - by @sheremet-va in https://github.com/vitest-dev/vitest/issues/5959 (0eda9)previewprovider when running in StackBlitz - by @userquin in [https://github.com/fix(browser): usepreviewprovider when running in StackBlitz vitest-dev/vitest#5836](https://redirect.github.com/vitest-dev/vitest/isConfiguration
📅 Schedule: Branch creation - "before 12pm on Sunday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.