TypeScript
fix(ci): a providerEnv.ts change runs every package's tests (#28286)
Victor Vogel3d10957d3f98
diff --git a/.github/scripts/ci-changes.cjs b/.github/scripts/ci-changes.cjsindex 0f817be60c3..ed32670755f 100644--- a/.github/scripts/ci-changes.cjs+++ b/.github/scripts/ci-changes.cjs@@ -14,7 +14,7 @@ const INERT = [// Shared test setup and vendored mobile dependencies affect every package.const RUNS_EVERYTHING = [- /^packages\/shared\/src\/(HostProcess|testing\/longTempDir)\.ts$/,+ /^packages\/shared\/src\/(HostProcess|testing\/(longTempDir|providerEnv))\.ts$/,/^apps\/mobile\/deps\//,];diff --git a/scripts/check-changed.test.ts b/scripts/check-changed.test.tsindex d074a7920f4..c08995026da 100644--- a/scripts/check-changed.test.ts+++ b/scripts/check-changed.test.ts@@ -178,6 +178,13 @@ describe("check:changed", () => {);});});++ it.each([+ "packages/shared/src/testing/longTempDir.ts",+ "packages/shared/src/testing/providerEnv.ts",+ ])("tests every package when the shared test setup file %s changes", (file) => {+ assert.strictEqual(decide([file], readWorkspace(), false).outputs.test_packages, "");+ });});// Hooks export GIT_DIR and GIT_INDEX_FILE, and user config or the default