💚(ci) fix performance issue of test job
Currently the test job seems to hit the maximum CPU resource available. In order to prevent that we try to run tests on several workers.
This commit is contained in:
committed by
Jean-Baptiste PENRATH
parent
d05e38520b
commit
6aca0a3d85
@@ -33,6 +33,7 @@
|
||||
"build-theme": "cunningham -o src -g css,ts,js",
|
||||
"preview": "vite preview",
|
||||
"test": "FORCE_COLOR=1 vitest run",
|
||||
"test-ci": "VITEST_MIN_THREADS=1 VITEST_MAX_THREADS=3 FORCE_COLOR=1 vitest run --shard $(($CIRCLE_NODE_INDEX + 1))/$CIRCLE_NODE_TOTAL",
|
||||
"test-watch": "vitest",
|
||||
"coverage": "vitest run --coverage",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
|
||||
Reference in New Issue
Block a user