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

Speedup frontend tests #1326

Merged
merged 1 commit into from
Apr 13, 2022
Merged

Speedup frontend tests #1326

merged 1 commit into from
Apr 13, 2022

Conversation

akellbl4
Copy link
Collaborator

The main goal is to replace ts/js compiler for tests to one of the most fast and reliable tool.

  • replaces ts-jest and babel-jest to swc/jest.
  • no need to import preact manually because it could be done automatically

@codecov
Copy link

codecov bot commented Apr 12, 2022

Codecov Report

Merging #1326 (79b7141) into master (5ed9e9d) will increase coverage by 0.47%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1326      +/-   ##
==========================================
+ Coverage   48.68%   49.16%   +0.47%     
==========================================
  Files         136      137       +1     
  Lines        3071     3039      -32     
  Branches      689      689              
==========================================
- Hits         1495     1494       -1     
+ Misses       1565     1529      -36     
- Partials       11       16       +5     
Impacted Files Coverage Δ
frontend/app/components/comment/comment.tsx 64.83% <100.00%> (ø)
.../app/components/dropdown/__item/dropdown__item.tsx 66.66% <0.00%> (-8.34%) ⬇️
frontend/app/components/select/select.tsx 90.00% <0.00%> (-0.91%) ⬇️
...ribe-by-email/comment-form__subscribe-by-email.tsx 90.51% <0.00%> (-0.54%) ⬇️
frontend/app/components/textarea-autosize.tsx 93.33% <0.00%> (-0.42%) ⬇️
frontend/app/components/auth-panel/auth-panel.tsx 82.75% <0.00%> (-0.30%) ⬇️
frontend/app/components/profile/profile.tsx 79.00% <0.00%> (-0.21%) ⬇️
frontend/app/components/sort-picker.tsx 95.65% <0.00%> (-0.19%) ⬇️
frontend/app/profile.ts 0.00% <0.00%> (ø)
frontend/app/utils/bench.ts 0.00% <0.00%> (ø)
... and 59 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5ed9e9d...79b7141. Read the comment docs.

@github-actions
Copy link

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
public/embed.mjs 2.02 KB (0%) 41 ms (0%) 190 ms (+33.03% 🔺) 231 ms
public/remark.mjs 67.56 KB (0%) 1.4 s (0%) 181 ms (-12.53% 🔽) 1.6 s
public/remark.css 8.28 KB (0%) 166 ms (0%) 0 ms (+100% 🔺) 166 ms
public/last-comments.mjs 30.37 KB (0%) 608 ms (0%) 233 ms (+31.09% 🔺) 840 ms
public/deleteme.mjs 9.92 KB (0%) 199 ms (0%) 83 ms (-28.66% 🔽) 281 ms
public/counter.mjs 749 B (0%) 15 ms (0%) 54 ms (-55.2% 🔽) 69 ms

@umputun umputun merged commit 001b994 into master Apr 13, 2022
@umputun umputun deleted the speedup-fe-tests branch April 13, 2022 08:40
@paskal paskal added this to the 1.10.0 milestone Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants