apify-test-tools.config.json requires every actor entry to repeat shared fields (e.g. tokenEnvVar) individually, even when the value is identical across most/all actors. This gets worse as we add more shared per-actor config (e.g. notification configs).
Solution
Add an overrides array that applies shared field values to actors by glob match, instead of repeating them per entry. The concrete actors array (literal folder + actorFullName) is unchanged.
Design decisions:
- Two independent glob types:
folder glob and actorFullName glob. * = all actors (just a glob with no literal segments, nothing special-cased).
- Precedence (highest to lowest):
- Literal value on the actor entry itself (in
actors array) — never overwritten by an override.
actorFullName glob override.
folder glob override.
- Within the same glob type, last matching entry in the array wins.
apify-test-tools.config.jsonrequires every actor entry to repeat shared fields (e.g.tokenEnvVar) individually, even when the value is identical across most/all actors. This gets worse as we add more shared per-actor config (e.g. notification configs).Solution
Add an
overridesarray that applies shared field values to actors by glob match, instead of repeating them per entry. The concreteactorsarray (literalfolder+actorFullName) is unchanged.Design decisions:
folderglob andactorFullNameglob.*= all actors (just a glob with no literal segments, nothing special-cased).actorsarray) — never overwritten by an override.actorFullNameglob override.folderglob override.