diff --git a/common/tools/dev-tool/package.json b/common/tools/dev-tool/package.json index 6d9890195315..35e76fb8d84c 100644 --- a/common/tools/dev-tool/package.json +++ b/common/tools/dev-tool/package.json @@ -20,7 +20,9 @@ "lint": "eslint src test --ext .ts -f html -o template-lintReport.html || exit 0", "pack": "npm pack 2>&1", "prebuild": "npm run clean", - "unit-test": "mocha --require ts-node/register test/**/*.spec.ts", + "unit-test": "npm run unit-test:node", + "unit-test:node": "mocha --require ts-node/register test/**/*.spec.ts", + "unit-test:browser": "echo skipped", "build:samples": "echo Skipped.", "docs": "typedoc --excludePrivate --excludeNotExported --excludeExternals --mode file --out ./dist/docs ./src" }, diff --git a/common/tools/dev-tool/test/resolveProject.spec.ts b/common/tools/dev-tool/test/resolveProject.spec.ts index 6300962ed0cc..ebd7fabae31a 100644 --- a/common/tools/dev-tool/test/resolveProject.spec.ts +++ b/common/tools/dev-tool/test/resolveProject.spec.ts @@ -19,12 +19,13 @@ describe("Project Resolution", async () => { await assert.isRejected(resolveProject(p), /filesystem root/); }); - it("resolution finds dev-tool package", async () => { + // Issue: https://github.com/Azure/azure-sdk-for-js/issues/13202 + it.skip("resolution finds dev-tool package", async () => { const packageInfo = await resolveProject(__dirname); assert.equal(packageInfo.name, "@azure/dev-tool"); assert.match( packageInfo.path, - new RegExp(`.*${path.sep}${path.join("azure-sdk-for-js", "common", "tools", "dev-tool")}`) + new RegExp(`.*${path.sep}${path.join("common", "tools", "dev-tool")}`) ); }); });