Azure / autorest.typescript

Extension for AutoRest (https://github.com/Azure/autorest) that generates TypeScript code. The transpiled javascript code is isomorphic. It can be run in browser and in node.js environment.
MIT License
177 stars 73 forks source link

update recordedClient.ts template for esm package #2639

Closed kazrael2119 closed 3 days ago

kazrael2119 commented 3 days ago

for cjs package, we use v3+v1, and use Context from mocha https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/compute/arm-compute-rest/test/public/utils/recordedClient.ts#L4

but for esm package, v4+v2 will not use mocha package so we need update the related code to https://github.com/kazrael2119/azure-sdk-for-js/blob/7c8eb82edaee77cf2b458d2951b12bbc63ff005a/sdk/mongocluster/arm-mongocluster/test/public/utils/recordedClient.ts#L7 and