Skip to content

Jest runs tests only from the *.spec.js files in the root folder #1323

@trivikr

Description

@trivikr

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 [email protected]: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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions