From 55a4d299ef5644d7b31080c628a63c6154ab90af Mon Sep 17 00:00:00 2001 From: Jordan Ramos Date: Tue, 16 Jun 2026 16:15:48 -0600 Subject: [PATCH] Force npm ci in test-frontend to fix stale cache missing transforms The cached node_modules was missing react-scripts babel config after package-lock.json changed (remark-gfm addition). Tests failed with 'Cannot use import statement outside a module' and JSX parse errors. Always run npm ci to ensure fresh dependencies match the lockfile. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0234ead..39c6808 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -118,7 +118,7 @@ test-frontend: - node_modules/ policy: pull script: - - cd frontend && (test -d node_modules || npm ci) && cd .. && (test -d node_modules || npm ci) && cd frontend && CI=true npx react-scripts test --watchAll=false --ci + - cd frontend && npm ci && cd .. && (test -d node_modules || npm ci) && cd frontend && CI=true npx react-scripts test --watchAll=false --ci timeout: 5 minutes needs: - install-frontend