mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
Fix test_node
This commit is contained in:
parent
67fee48c6a
commit
11f91bd451
@ -11,6 +11,14 @@ run_test() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
run_test_node() {
|
||||||
|
if [ "$REACT" != 16 ]; then
|
||||||
|
npm run test-node -- -w 2 -u
|
||||||
|
else
|
||||||
|
npm run test-node -- -w 2
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
if [ "$TEST_TYPE" = lint ]; then
|
if [ "$TEST_TYPE" = lint ]; then
|
||||||
npm run lint
|
npm run lint
|
||||||
elif [ "$TEST_TYPE" = test:dist ]; then
|
elif [ "$TEST_TYPE" = test:dist ]; then
|
||||||
@ -30,5 +38,5 @@ elif [ "$TEST_TYPE" = test:dom ]; then
|
|||||||
bash <(curl -s https://codecov.io/bash)
|
bash <(curl -s https://codecov.io/bash)
|
||||||
fi
|
fi
|
||||||
elif [ "$TEST_TYPE" = test:node ]; then
|
elif [ "$TEST_TYPE" = test:node ]; then
|
||||||
npm run test-node -- -w 2 -u
|
run_test_node
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user