Closed luzhuang closed 1 month ago
[!CAUTION]
Review failed
The pull request is closed.
The pull request introduces updates to the CI workflow and the testing framework, transitioning from Chai to Vitest. Key modifications include the removal of the codecov
job in the CI configuration, changes to test scripts in package.json
, and the introduction of a new Vitest configuration file. Several unused dependencies have been removed, and existing classes have been reformatted for improved readability without altering functionality.
File Path | Change Summary |
---|---|
.github/workflows/ci.yml | Removed codecov job; corrected indentation in build job; modified e2e job to run Cypress tests with new artifact upload steps. |
package.json | Updated test script to run vitest ; added coverage script; added pretest script; removed several devDependencies and added new dependencies for vitest and playwright . |
packages/core/src/animation/Keyframe.ts | Reformatted the generic type parameter T in the Keyframe class declaration for improved readability without changing logic. |
packages/core/src/animation/internal/animationCurveOwner/AnimationCurveOwner.ts | Reformatted conditional expressions in evaluateCrossFadeValue and crossFadeFromPoseAndApplyValue methods for clarity while preserving logic. |
tests/src/shader-lab/Preprocessor.test.ts | Updated import statements and changed testing framework from Chai to Vitest, including asynchronous file reading. |
tests/src/shader-lab/test-case/index.ts | Transitioned to asynchronous file handling, updated import statements, and simplified path management. |
tests/vitest.config.ts | Added a new Vitest configuration file to set up project-specific configurations, including dependency optimizations and browser settings. |
e2e/package.json | Updated version number and changed vite dependency from caret version to fixed version. |
.github/workflows/ci.yml
file regarding the build command and the removal of the codecov
job are directly related to the modifications made in the same file in this PR, which also involves changes to the CI workflow configuration..github/workflows/ci.yml
file, including the removal of the codecov
job and adjustments to the build
and e2e
jobs, directly relating to the modifications in the main PR.enhancement
In the land of code where rabbits play,
Our tests now hop in a brand new way.
With Vitest's charm, we leap and bound,
Chai's old ways no longer found.
Coverage and structure, all set to shine,
Hooray for our changes, oh how divine! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Attention: Patch coverage is 81.25000%
with 3 lines
in your changes missing coverage. Please review.
Project coverage is 66.55%. Comparing base (
ab1ceb3
) to head (e44f652
). Report is 1 commits behind head on dev/1.4.
Files with missing lines | Patch % | Lines |
---|---|---|
...nternal/animationCurveOwner/AnimationCurveOwner.ts | 50.00% | 3 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Other information:
Summary by CodeRabbit
New Features
@galacean/engine-e2e
project version and fixed thevite
dependency version.Bug Fixes
Chores
package.json
to simplify coverage reporting and improve consistency in testing practices.