Describe the bug
Jest runs tests only from the *.spec.js files in the root folder
SDK version number
master
To Reproduce (observed behavior)
$ git clone git@github.com:aws/aws-sdk-js-v3.git
$ cd aws-sdk-js-v3
$ yarn build:all
...
$ cd packages/credential-provider-imds
$ yarn test
yarn run v1.22.4
$ yarn build:cjs
$ tsc -p tsconfig.cjs.json
$ jest
PASS dist/cjs/fromContainerMetadata.spec.js
PASS dist/cjs/fromInstanceMetadata.spec.js
Test Suites: 2 passed, 2 total
Tests: 19 passed, 19 total
Snapshots: 0 total
Time: 1.396s
Ran all test suites.
Done in 3.22s.
Note that tests from *.spec.js files in remoteProvider folder are not run.
Expected behavior
Jest runs tests from all *.spec.js files