From 34da487f0f22aae0bdbe2fbf231686640b9c6524 Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Thu, 7 Mar 2024 17:38:45 -0800 Subject: [PATCH] [identity] Use tsx for tests (#28808) ### Packages impacted by this PR @azure/identity ### Describe the problem that is addressed by this PR Follows #28801 to use tsx for running identity tests, which avoids requiring the mocha workarounds ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? Using esm4mocha, but I think this is a good path forward to try --- sdk/identity/identity/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/identity/identity/package.json b/sdk/identity/identity/package.json index a3daf988d2cd..de3eac1d4112 100644 --- a/sdk/identity/identity/package.json +++ b/sdk/identity/identity/package.json @@ -55,7 +55,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 180000 'test/public/node/*.spec.ts' 'test/internal/node/*.spec.ts'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 180000 'dist-esm/test/public/node/*.spec.js' 'dist-esm/test/internal/node/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts",