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 75 forks source link

support the script `integration-test:node` in non-branded azure env #2055

Open MaryGao opened 1 year ago

MaryGao commented 1 year ago

see comment https://github.com/Azure/autorest.typescript/pull/2023#discussion_r1353591583, support the script integration-test:node in non-branded azure env

jeremymeng commented 1 year ago

Note that the workaround is needed for .js test inputs. We decided to use .ts input for unit-test:node and .js for integration-test:node in the azure sdk js repo because we want to test the ESM output. But that's historical and I don't think it actaully provide too much value. So another option could be changing the test input to .ts files, then we don't need the esm-workaround. Just need the changes for .ts test input.