codecov / codecov-javascript-bundler-plugins

Set of bundler plugins that allow users to upload bundle stats to Codecov.
MIT License
4 stars 1 forks source link

ref: Move from Jest to Vitest #120

Closed nicholas-codecov closed 2 months ago

nicholas-codecov commented 2 months ago

Description

This PR moves the test suite from Jest over to Vitest, as there seems to be some issues when working with Jest and MSW that don't appear when running Vitest.

Closes codecov/engineering-team#1596

Notable Changes

codecov-notifications[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:white_check_mark: All tests successful. No failed tests found :relaxed:

Components Coverage Δ
Plugin core 97.67% <ø> (?)
Rollup plugin 25.93% <ø> (?)
Vite plugin 27.09% <ø> (?)
Webpack plugin 40.24% <ø> (?)

:loudspeaker: Thoughts on this report? Let us know!

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.60%. Comparing base (e6f3e66) to head (2a1210c).

:white_check_mark: All tests successful. No failed tests found :relaxed:

Additional details and impacted files | [Components](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/120/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | Coverage Δ | | |---|---|---| | [Plugin core](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/120/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `97.67% <ø> (+0.44%)` | :arrow_up: | | [Rollup plugin](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/120/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `25.93% <ø> (+21.85%)` | :arrow_up: | | [Vite plugin](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/120/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `27.09% <ø> (+23.21%)` | :arrow_up: | | [Webpack plugin](https://app.codecov.io/gh/codecov/codecov-javascript-bundler-plugins/pull/120/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=codecov) | `40.24% <ø> (+15.83%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

hootener commented 2 months ago

Bundle Report

Changes will decrease total bundle size by 128.33kB :arrow_down:

Bundle name Size Change
@codecov/webpack-plugin-cjs 17.32kB 0 bytes
@codecov/rollup-plugin-cjs 14.58kB 0 bytes
@codecov/bundler-plugin-core-cjs 150.56kB 0 bytes
@codecov/vite-plugin-es 13.96kB 12.89kB :arrow_up:
@codecov/example-next-app-server 325.59kB 0 bytes
@codecov/webpack-plugin-es 1.26kB 0 bytes
@codecov/example-webpack-app-array-push 71.19kB 0 bytes
@codecov/rollup-plugin-es 1.14kB 0 bytes
@codecov/example-vite-app-esm 150.59kB 0 bytes
@codecov/vite-plugin-cjs 14.46kB 614 bytes :arrow_down:
@codecov/bundler-plugin-core-es 6.03kB 140.3kB :arrow_down:
@codecov/example-rollup-app-iife 95.45kB 0 bytes
@codecov/example-next-app-client 894.27kB 0 bytes
@codecov/example-next-app-edge-server (removed) 306 bytes :arrow_down:
codecov[bot] commented 2 months ago

Bundle Report

Changes will increase total bundle size by 1.46MB :arrow_up:

Bundle name Size Change
@codecov/vite-plugin-es 1.08kB 13.51kB :arrow_down:
@codecov/rollup-plugin-cjs 14.58kB 0 bytes
@codecov/rollup-plugin-es 1.14kB 12.94kB :arrow_down:
@codecov/example-vite-app-esm 150.59kB 150.59kB :arrow_up:
@codecov/example-rollup-app-iife 95.45kB 95.45kB :arrow_up:
@codecov/bundler-plugin-core-cjs 150.56kB 0 bytes
@codecov/example-next-app-server 325.59kB 325.59kB :arrow_up:
@codecov/example-next-app-edge-server 306 bytes 306 bytes :arrow_up:
@codecov/bundler-plugin-core-es 6.03kB 0 bytes
@codecov/webpack-plugin-cjs 17.32kB 17.32kB :arrow_up:
@codecov/example-next-app-client 894.27kB 894.27kB :arrow_up:
@codecov/vite-plugin-cjs 14.46kB 614 bytes :arrow_down:
@codecov/webpack-plugin-es 1.26kB 1.26kB :arrow_up:
@codecov/example-webpack-app-array-push 71.19kB 0 bytes