Skip to content

Commit c9eec35

Browse files
committed
fix uuid when test
1 parent 65f1f8c commit c9eec35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export function getMotionName(prefixCls: string, transitionName?: string, animat
99

1010
// ================================ UUID ================================
1111
let uuid = -1;
12+
const isTest = process.env.NODE_ENV === 'test';
1213
export function getUUID() {
14+
if (isTest) return 0;
1315
uuid += 1;
1416
return uuid;
1517
}

0 commit comments

Comments
 (0)