test: update transition #5023

pull/5057/head
tangjinzhou 2021-12-17 16:05:58 +08:00
parent 9784b429f5
commit ae9ab9c5b0
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ export const getTransitionGroupProps = (transitionName: string, opt: TransitionP
let Transition = T;
let TransitionGroup = TG;
if (process.env.NODE_ENV === 'test') {
if (process.env.JUST_ANTDV_ENV === 'test') {
Transition = defineComponent({
name: 'TransitionForTest',
inheritAttrs: false,

View File

@ -30,7 +30,7 @@
"scripts": {
"predev": "node node_modules/esbuild/install.js",
"dev": "yarn predev && yarn routes && vite serve site",
"test": "cross-env NODE_ENV=test jest --config .jest.js",
"test": "cross-env NODE_ENV=test JUST_ANTDV_ENV=test jest --config .jest.js",
"compile": "node antd-tools/cli/run.js compile",
"generator-webtypes": "tsc -p antd-tools/generator-types/tsconfig.json && node antd-tools/generator-types/index.js",
"pub": "node --max_old_space_size=8192 antd-tools/cli/run.js pub",