Files
Jiao Di (MSFT)andGitHub 7406792e8d [mgmt] migrate mgmt package to esm 26 (#33084)
https://github.com/Azure/azure-sdk-for-js/issues/32184
@azure/arm-resources-profile-2020-09-01-hybrid
@azure/arm-resources
@azure/arm-resourcemover
@azure/arm-resourcehealth
@azure/arm-resourcegraph
@azure/arm-vmwarecloudsimple
2025-02-18 03:26:34 +00:00

45 lines
1.2 KiB
TypeScript

/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import {
Recorder,
RecorderStartOptions} from "@azure-tools/test-recorder";
import { describe, it, beforeEach, afterEach } from "vitest";
const replaceableVariables: Record<string, string> = {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
SUBSCRIPTION_ID: "azure_subscription_id"
};
const recorderOptions: RecorderStartOptions = {
envSetupForPlayback: replaceableVariables,
removeCentralSanitizers: [
"AZSDK3493", // .name in the body is not a secret and is listed below in the beforeEach section
"AZSDK3430", // .id in the body is not a secret and is listed below in the beforeEach section
],
};
describe("My test", () => {
let recorder: Recorder;
beforeEach(async (ctx) => {
recorder = new Recorder(ctx);
await recorder.start(recorderOptions);
});
afterEach(async () => {
await recorder.stop();
});
it("sample test", async () => {
console.log("Hi, I'm a test!");
});
});