From f4035cdb8eb39fd4e7b545e3acd16f92cf84acc2 Mon Sep 17 00:00:00 2001 From: William Murphy Date: Wed, 10 Jul 2024 09:16:26 -0400 Subject: [PATCH] chore: serialize tests to prevent install race (#478) Previously, running the npm test script in CI would sometimes result in multiple test processes all trying to install Syft at the same time, and one would fail with "spawn: ETXTBSY". Instead, run all tests in series. Signed-off-by: Will Murphy --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 59c0f656..91836ceb 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "package:download-action": "ncc build src/attachReleaseAssets.ts -o dist/attachReleaseAssets", "package:release-action": "ncc build src/downloadSyft.ts -o dist/downloadSyft", "post-package:fix-line-endings": "eolConverter 'dist/**/*.js'", - "test": "jest --collect-coverage", + "test": "jest --collect-coverage --runInBand", "test:update-snapshots": "jest --updateSnapshot", "all": "npm run build && npm run format && npm run lint && npm run package && npm test", "prepare": "husky install",