Skip to content

Commit ae9ab9c

Browse files
committed
test: update transition #5023
1 parent 9784b42 commit ae9ab9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/_util/transition.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const getTransitionGroupProps = (transitionName: string, opt: TransitionP
5858
let Transition = T;
5959
let TransitionGroup = TG;
6060

61-
if (process.env.NODE_ENV === 'test') {
61+
if (process.env.JUST_ANTDV_ENV === 'test') {
6262
Transition = defineComponent({
6363
name: 'TransitionForTest',
6464
inheritAttrs: false,

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"scripts": {
3131
"predev": "node node_modules/esbuild/install.js",
3232
"dev": "yarn predev && yarn routes && vite serve site",
33-
"test": "cross-env NODE_ENV=test jest --config .jest.js",
33+
"test": "cross-env NODE_ENV=test JUST_ANTDV_ENV=test jest --config .jest.js",
3434
"compile": "node antd-tools/cli/run.js compile",
3535
"generator-webtypes": "tsc -p antd-tools/generator-types/tsconfig.json && node antd-tools/generator-types/index.js",
3636
"pub": "node --max_old_space_size=8192 antd-tools/cli/run.js pub",

0 commit comments

Comments
 (0)