We have had to do a number of hacks (like copying Defines.php into the repo) to get unit tests into the mediawiki-config repository, some of which are fragile and bound to break some day. Perhaps instead we could run the test suite once for each of the two most recent deploy branches and have the code instead pull defines (and anything else it uses from core) in.
I don't know if we will need to pull in all the extensions, i'm guessing probably not. It might be nice to pull in the vendor directory though so things like Avro schema's defined in mediawiki-config can be run through the library used in production to verify their validity.