aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
2.96k stars 556 forks source link

test: remove deprecated ts-jest globals config #6050

Closed trivikr closed 1 month ago

trivikr commented 2 months ago

Issue

Noticed while working on https://github.com/aws/aws-sdk-js-v3/pull/6038

Description

Removes deprecated ts-jest globals config

Testing

Before

ts-jest emits warning

$ aws-restjson-server> yarn test
...
ts-jest[ts-jest-transformer] (WARN) Define `ts-jest` config under `globals` is deprecated. Please do
transform: {
    <transform_regex>: ['ts-jest', { /* ts-jest config goes here in Jest */ }],
},
..
Ran all test suites.
Done in 13.89s.

After

ts-jest does not emit warning

$ aws-restjson-server> yarn test
...
Ran all test suites.
Done in 14.20s.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

github-actions[bot] commented 1 month ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.