We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe17cb0 commit 5b67b9eCopy full SHA for 5b67b9e
src/hooks/useId.ts
@@ -48,7 +48,7 @@ export default useOriginId
48
return id;
49
}
50
51
- // Test env always return mock id
+ // By default, test env always return mock id, but also allow force use id for test case which need to test id logic.
52
if (!forceUseId && process.env.NODE_ENV === 'test') {
53
return 'test-id';
54
@@ -72,7 +72,7 @@ export default useOriginId
72
73
74
75
76
77
78
0 commit comments