From 956e6f2367e220dfb77bc3ccd693f8027247e12a Mon Sep 17 00:00:00 2001 From: jbpenrath Date: Fri, 11 Aug 2023 15:34:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A(tokens)=20fix=20flaky=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- packages/tokens/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tokens/package.json b/packages/tokens/package.json index da8e2de..37b984b 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -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",