From e86799c9dee5b3f2b0d0e2dd57201a988393554b Mon Sep 17 00:00:00 2001 From: dlarocque Date: Fri, 26 Jun 2026 11:47:52 -0400 Subject: [PATCH] test: compile once and reuse build artifacts in npm test Previously, running npm test triggered test-only and conformance scripts, each with pre hooks that wiped and recompiled the build directory. This resulted in compiling the entire codebase twice per test run. This change removes pretest-only and preconformance hooks, updating npm test to compile once and execute unit and conformance tests sequentially against the shared build directory. --- handwritten/firestore/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handwritten/firestore/package.json b/handwritten/firestore/package.json index 42744f778c67..b998c8341b53 100644 --- a/handwritten/firestore/package.json +++ b/handwritten/firestore/package.json @@ -53,9 +53,8 @@ "presystem-test": "npm run compile", "samples-test": "npm link && cd samples/ && npm link ../ && npm test && cd ../", "conformance": "mocha build/conformance", - "preconformance": "npm run compile", "test-only": "c8 mocha build/test", - "pretest-only": "npm run compile", + "pretest": "npm run compile", "test": "npm run test-only && npm run conformance", "lint": "gts check", "clean": "gts clean",