💚(tokens) fix flaky test

Currently tokens test are flaky. It appears `cleanup` function can raise
 an Error. Locally, we use `runInBand` option to run our tests and all
 is working fine. The mess up could appear when test are running in
 parallel as cleanup can remove file used in other test at any moment.
This commit is contained in:
jbpenrath
2023-08-11 15:34:51 +02:00
committed by Jean-Baptiste PENRATH
parent 944370cc02
commit 956e6f2367

View File

@@ -30,7 +30,7 @@
"build": "yarn build-bin && yarn build-default-theme && yarn build-lib && cd ../.. && ln -sf ../../packages/tokens/dist/bin/Main.js node_modules/.bin/cunningham",
"build-default-theme": "./dist/bin/Main.js -o dist -s html -g scss,css,js,ts --utility-classes",
"test": "FORCE_COLOR=1 jest --runInBand --verbose src",
"test-ci": "FORCE_COLOR=1 jest -w 3 --shard $(($CIRCLE_NODE_INDEX + 1))/$CIRCLE_NODE_TOTAL src"
"test-ci": "FORCE_COLOR=1 jest --runInBand src"
},
"dependencies": {
"chalk": "4.1.2",