From 208e9e24bf08b69d9e7d1f1a3562b82660e4b65d Mon Sep 17 00:00:00 2001 From: mkorwel Date: Tue, 21 Oct 2025 22:49:55 -0700 Subject: [PATCH] fix(ci): Generate git-commit.js before running workspace tests Updates the root 'test:ci' script to run 'npm run generate' before executing the workspace tests. This ensures that the 'generated/git-commit.js' file is created before any unit tests are run, preventing the 'Cannot find module' error that was occurring in the CI environment. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4f47294a8d..2fa28dea3a 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "build:sandbox": "node scripts/build_sandbox.js", "bundle": "npm run generate && node esbuild.config.js && node scripts/copy_bundle_assets.js", "test": "npm run test --workspaces --if-present --parallel", - "test:ci": "npm run test:ci --workspaces --if-present --parallel && npm run test:scripts", + "test:ci": "npm run generate && npm run test:ci --workspaces --if-present --parallel && npm run test:scripts", "test:scripts": "vitest run --config ./scripts/tests/vitest.config.ts", "test:e2e": "cross-env VERBOSE=true KEEP_OUTPUT=true npm run test:integration:sandbox:none", "test:integration:all": "npm run test:integration:sandbox:none && npm run test:integration:sandbox:docker && npm run test:integration:sandbox:podman",