You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, our team has been using Jest-style assertions and for consistency would like to use exclusively those. We used our vitest.d.ts to manually mark the Chai-style assertions as : never (which unfortunately needs manual updating whenever a new Vitest version adds more Chai assertions) but it would be better if they could be entirely removed from IDE autocomplete suggestions as well, as if they don't exist.
And the reverse option should be available for those who prefer Chai-style assertions.
I believe .not is the only one shared between both, so that wouldn't be affected regardless of the config setting.
Doing some extra thinking about it, I guess this might not be possible as just a config option? Maybe it would require extra "packages" or something.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Basically, our team has been using Jest-style assertions and for consistency would like to use exclusively those. We used our
vitest.d.tsto manually mark the Chai-style assertions as: never(which unfortunately needs manual updating whenever a new Vitest version adds more Chai assertions) but it would be better if they could be entirely removed from IDE autocomplete suggestions as well, as if they don't exist.And the reverse option should be available for those who prefer Chai-style assertions.
I believe
.notis the only one shared between both, so that wouldn't be affected regardless of the config setting.Doing some extra thinking about it, I guess this might not be possible as just a config option? Maybe it would require extra "packages" or something.
Beta Was this translation helpful? Give feedback.
All reactions