Skip to content
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

refactor(tests): migrate to vitest, move all tests to editor #4388

Merged

Conversation

elbotho
Copy link
Member

@elbotho elbotho commented Jan 10, 2025

No description provided.

Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
frontend ✅ Ready (Inspect) Visit Preview Jan 10, 2025 10:26am

Copy link
Contributor

📦 Next.js Bundle Analysis for @serlo/frontend

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 104.64 KB (🟡 +4 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Twenty-three Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/[...slug] 558.38 KB (🟢 -61 B) 663.02 KB
/___bot_or_not 568.32 KB (🟢 -61 B) 672.96 KB
/___editor_package_preview 534.49 KB (🟢 -61 B) 639.13 KB
/___editor_preview 697.94 KB (-61 B) 802.58 KB
/biologie 620.26 KB (-61 B) 724.9 KB
/chemie 620.25 KB (-61 B) 724.89 KB
/content-only/[...slug] 550.49 KB (🟢 -61 B) 655.13 KB
/editor 552.23 KB (🟢 -61 B) 656.87 KB
/entity/create/[type]/[taxonomyId] 594.61 KB (🟢 -61 B) 699.25 KB
/entity/repository/add-revision/[...id] 594.27 KB (🟢 -61 B) 698.91 KB
/entity/repository/compare/[entity_id]/[revision_id] 559.72 KB (🟢 -61 B) 664.36 KB
/informatik 620.26 KB (-61 B) 724.9 KB
/lerntipps 620.26 KB (-61 B) 724.9 KB
/license/detail/[id] 539.49 KB (🟢 -61 B) 644.13 KB
/mathe 620.25 KB (-61 B) 724.89 KB
/nachhaltigkeit 620.26 KB (-61 B) 724.9 KB
/page/create 594.28 KB (🟢 -61 B) 698.92 KB
/taxonomy/term/[copyOrMove]/batch/[id] 560.16 KB (🟢 -61 B) 664.8 KB
/taxonomy/term/create/[parent_id]/[id] 593.98 KB (🟢 -61 B) 698.62 KB
/taxonomy/term/sort/entities/[id] 574.87 KB (🟢 -61 B) 679.51 KB
/taxonomy/term/update/[id] 593.9 KB (🟢 -61 B) 698.54 KB
/user/profile/[username] 632.91 KB (-61 B) 737.55 KB
/user/settings 571.28 KB (🟢 -61 B) 675.92 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@hejtful hejtful merged commit d939141 into refactor/use-editor-package-in-frontend Jan 10, 2025
8 checks passed
@hejtful hejtful deleted the refactor/migrate-to-vitest branch January 10, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants