Files
ZiWei ChenandGitHub 61df4af2c3 [mgmt] migrate mgmt package to esm 12 (#32548)
https://github.com/Azure/azure-sdk-for-js/issues/32184
@azure/arm-deviceprovisioningservices
@azure/arm-deviceupdate
@azure/arm-devspaces
@azure/arm-devtestlabs
@azure/arm-digitaltwins
2025-01-16 21:09:02 +08:00

44 lines
1.3 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 type { RecorderStartOptions } from "@azure-tools/test-recorder";
import { Recorder } from "@azure-tools/test-recorder";
import { afterEach, beforeEach, describe, it, assert } 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 () => {
assert(true);
});
});