Skip to content

Commit

Permalink
feat: opt code
Browse files Browse the repository at this point in the history
luzhuang committed Dec 20, 2023
1 parent dd88113 commit 203d3d8
Showing 5 changed files with 917 additions and 616 deletions.
14 changes: 7 additions & 7 deletions cypress/e2e/animator.cy.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
describe("Animator", () => {
it("Animator Play", () => {
cy.screenshotWithThreshold("Animator", "animator-play", 0.3);
cy.screenshotWithThreshold("Animator", "animator-play", 0.38);
});

it("Animator Crossfade", () => {
cy.screenshotWithThreshold("Animator", "animator-crossfade", 0.3);
cy.screenshotWithThreshold("Animator", "animator-crossfade", 0.38);
});

it("Animation Additive", () => {
cy.screenshotWithThreshold("Animator", "animator-additive", 0.3);
cy.screenshotWithThreshold("Animator", "animator-additive", 0.38);
});

it("Animator Reuse", () => {
cy.screenshotWithThreshold("Animator", "animator-reuse", 0.3);
cy.screenshotWithThreshold("Animator", "animator-reuse", 0.38);
});

it("Animation BlendShape", () => {
cy.screenshotWithThreshold("Animator", "animator-blendShape", 0.3);
cy.screenshotWithThreshold("Animator", "animator-blendShape", 0.38);
});

it("Animator CustomBlendShape", () => {
cy.screenshotWithThreshold("Animator", "animator-customBlendShape", 0.3);
cy.screenshotWithThreshold("Animator", "animator-customBlendShape", 0.38);
});

it("Animator stateMachineScript", () => {
@@ -32,6 +32,6 @@ describe("Animator", () => {
});

it("Animator CustomAnimationClip", () => {
cy.screenshotWithThreshold("Animator", "animator-customAnimationClip", 0.3);
cy.screenshotWithThreshold("Animator", "animator-customAnimationClip", 0.38);
});
});
4 changes: 2 additions & 2 deletions cypress/fixtures/originImage/Animator_animator-blendShape.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -55,20 +55,12 @@
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-swc3": "^0.10.1",
"ts-node": "^10",
"typescript": "^4.8.4",
"typescript": "^5.1.6",
"husky": "^8.0.0",
"fs-extra": "^10.1.0",
"cypress": "^12.17.1",
"cypress-recurse": "^1.23.0",
"odiff-bin": "^2.5.0"

},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
},
"typescript": "^5.1.6",
"husky": "^8.0.0"
},
"lint-staged": {
"*.{ts}": [
1,499 changes: 904 additions & 595 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 203d3d8

Please sign in to comment.