utopia
utopia copied to clipboard
chore(test): remove warnings
Problem: Today we have a lot of warnings in our Karma output which really clutters it
Fix: This PR tries to address some of them:
- import the default export of
package.jsoninstead ofimport * from - change
moduleIdsfromhashedtodeterministic(as Webpack recommends) - import
{ act }from@testing-library/reactinstead ofreact-dom/test-utils
Manual Tests: I hereby swear that:
- [X] I opened a hydrogen project and it loaded
- [X] I could navigate to various routes in Preview mode
#15425 Bundle Size — 58.21MiB (-0.02%).
5696d50(current) vs d1d46c1 master#15423(baseline)
[!WARNING] Bundle contains 70 duplicate packages – View duplicate packages
Bundle metrics
2 changes
1 improvement
| Current #15425 |
Baseline #15423 |
|
|---|---|---|
41.18MiB(-0.03%) |
41.19MiB |
|
0B |
0B |
|
100% |
18.14% |
|
20 |
20 |
|
22 |
22 |
|
4190 |
4190 |
|
213 |
213 |
|
27.24% |
27.24% |
|
477 |
477 |
|
70 |
70 |
Bundle size by type
2 changes
2 improvements
| Current #15425 |
Baseline #15423 |
|
|---|---|---|
58.2MiB (-0.02%) |
58.21MiB |
|
9.4KiB (-0.21%) |
9.42KiB |
Bundle analysis report Branch chore/clear-warns Project dashboard
Generated by RelativeCI Documentation Report issue
Temporarily closing as a spike to be picked up later