Dealing with packages/components/packages/* test config
Currently, due to the way our testing is set up, you need to have a jest-setup.js per package, which changes NODE_CONFIG_DIR to the test config dir, e.g.
packages/components/config/. This allows
node-config to load the correct test config for each package. However, nesting this doesn't appear to work (e.g. have a
packages/components/packages/AWSS3/), probably because
packages/components/jest-setup.js will also load and its jest will pick up the tests in
packages/componets/packages/AWSS3 but with the wrong config file.
We solved this temporarily by adding the config required by AWSS3 to
packages/components/config/test.js, but it's probably best to uncouple all of this and somehow have each
packages/components/packages/* thing run its own test with its own