@azure-tools/test-utils

v1.0.1
Test utilities library for the Azure SDK for JavaScript and TypeScript
Azure cloud test framework

lint

eslint --no-eslintrc -c ../../.eslintrc.internal.json package.json src test --ext .ts

pack

npm pack 2>&1

test

npm run clean && npm run build:test && npm run unit-test

audit

node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit

build

npm run clean && tsc -p . && dev-tool run bundle

clean

rimraf --glob dist dist-* types *.tgz *.log

format

dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "test/**/*.ts" "*.{js,json}"

lint:fix

eslint --no-eslintrc -c ../../.eslintrc.internal.json package.json src test --ext .ts --fix --fix-type [problem,suggestion]

test:node

npm run clean && npm run build:test && npm run unit-test:node

unit-test

npm run unit-test:node && npm run unit-test:browser

build:test

echo skipped. actual commands inlined in browser test scripts

check-format

dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore "src/**/*.ts" "test/**/*.ts" "*.{js,json}"

test:browser

npm run clean && npm run build:test npm run unit-test:browser

build:samples

echo Skipped.

unit-test:node

dev-tool run test:node-ts-input --no-test-proxy

integration-test

npm run integration-test:node && npm run integration-test:browser

unit-test:browser

tsc -p . && dev-tool run bundle && cross-env karma start --single-run

integration-test:node

echo skipped

integration-test:browser

echo skipped
npm i @azure-tools/[email protected]

Metadata

  • MIT
  • >=18.0.0
  • Unknown
  • released 5/8/2024

Downloads