Skip to content

Commit

Permalink
[app-config] Migrate to new recorder (Azure#23520)
Browse files Browse the repository at this point in the history
  • Loading branch information
minhanh-phan authored Oct 31, 2022
1 parent 124803a commit 3da66b9
Show file tree
Hide file tree
Showing 209 changed files with 101,587 additions and 24,993 deletions.
5 changes: 5 additions & 0 deletions sdk/appconfiguration/app-configuration/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// https://github.com/karma-runner/karma-chrome-launcher
process.env.CHROME_BIN = require("puppeteer").executablePath();
require("dotenv").config();
const { relativeRecordingsPath } = require("@azure-tools/test-recorder");

process.env.RECORDINGS_RELATIVE_PATH = relativeRecordingsPath();
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
Expand Down Expand Up @@ -50,7 +52,10 @@ module.exports = function (config) {
"AZURE_CLIENT_ID",
"AZURE_CLIENT_SECRET",
"AZURE_TENANT_ID",
"AZ_CONFIG_ENDPOINT",
"TEST_MODE",
"RECORDINGS_RELATIVE_PATH",
"TEST_PROXY_HTTP_PORT",
],

// test results reporter to use
Expand Down
11 changes: 6 additions & 5 deletions sdk/appconfiguration/app-configuration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
"lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js",
"pack": "npm pack 2>&1",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "npm run build:test && cross-env TEST_MODE=live karma start --single-run",
"integration-test:node": "npm run build:test && nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 180000 --full-trace \"dist-esm/test/*.spec.js\" \"dist-esm/test/**/*.spec.js\"",
"integration-test:browser": "npm run build:test && dev-tool run test:browser",
"integration-test:node": "dev-tool run test:node-js-input -- --timeout 180000 'dist-esm/test/**/*.spec.js'",
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",
"test": "npm run test:node && npm run test:browser",
"unit-test:browser": "",
"unit-test:node": "mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"",
"unit-test:browser": "dev-tool run test:browser",
"unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
},
"engines": {
Expand Down Expand Up @@ -96,7 +96,8 @@
"@azure/eventgrid": "4.9.0",
"@azure/identity": "^2.0.1",
"@azure/keyvault-secrets": "^4.2.0",
"@azure-tools/test-recorder": "^1.0.0",
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-recorder": "^2.0.0",
"@azure/test-utils": "^1.0.0",
"@microsoft/api-extractor": "^7.31.1",
"@types/chai": "^4.1.6",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3da66b9

Please sign in to comment.