-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Tests] - updating Vitest breaks most tests #1492
Comments
So, after investigating this issue, here’s the rundown:
Based on these findings, I see three options: First option: (revert ⏮️)We can revert to what we had a couple of months ago. Instead of importing Second option: (tweak 🔧)We would have to update the const deps = Object.keys(pkg.dependencies || {})
const devDeps = Object.keys(pkg.devDependencies || {})
const omitDeps = Object.keys(pkg.omit || {}) // 👈 new
...
rollupOptions: {
external: [...deps, ...devDeps, ...omitDeps],
} Then, we would also need to modify the package.json files of our components and add a new field (something like // package.json
"name": "@spark-ui/foo",
"dependencies": { ... },
"omit": {
"@spark-ui/icons/dist/icons/ArrowVerticalLeft": "",
"@spark-ui/icons/dist/icons/ArrowVerticalRight": "",
} This approach is a bit of a hack, but it works. Are we okay with this? 🤷 Third option: (clean 🧹)Perhaps it’s time to reconsider our icon set. Currently, we have almost ~450 icons 🤢, and this number will continue to grow over time. |
~450 icons is CRAZZYYY, we must do a cleanup for sure |
We had a meeting called remove icons from Spark repository on October 18th, we discussed the possibility of separating the Spark core icons (icons used internally by Spark components) from the rest (which are Polaris icons). Ultimately, all stacks (web, iOS, android) agreed that we should indeed separate them into two packages/repos:
However, to make this happen, we will need to update the current pipelines, also this will involve updates on Polaris (such as updating imports and stuff). Therefore, we will need to create tickets to address this during the next sprints Important In the meantime, this ticket will be considered as blocked. |
We had too many icons, should be ok. Need to check if it's ok with the new repo. |
@acd02 @andresin87 @soykje this ticket has been here since September. What do we do with it ? |
👋 @Powerplex , |
Dependabot opened a PR to update
Vitest
, and it breaks many tests. #1458I checked the vitest update (it seems they don't have a proper changelog) and it starts breaking our test from version
0.34.0
onward.It seems we might need to also update
@vitejs/plugin-react
at the same time. I also noticed we reference Vitest twice (dependencies
anddevDependencies
), which is strange.Here is the type of error that appears:
The text was updated successfully, but these errors were encountered: