Skip to content

Commit 5bdb96b

Browse files
authored
[test][CI] move test building into test:browser scripts (Azure#29633)
for non-core packages in js - core pipelines. This PR is a follow-up of PR Azure#29411 for non-core packages.
1 parent 242f65c commit 5bdb96b

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

sdk/identity/identity/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"scripts": {
4949
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
5050
"build:samples": "echo Obsolete.",
51-
"build:test": "tsc -p . && dev-tool run bundle",
51+
"build:test": "echo skipped. actual commands inlined in browser test scripts",
5252
"build": "npm run clean && npm run extract-api && tsc -p . && dev-tool run bundle",
5353
"clean": "rimraf --glob dist dist-* types *.tgz *.log",
5454
"execute:samples": "dev-tool samples run samples-dev",
@@ -62,8 +62,8 @@
6262
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
6363
"lint": "eslint package.json api-extractor.json src test --ext .ts",
6464
"pack": "npm pack 2>&1",
65-
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
66-
"test:node": "npm run clean && npm run build:test && npm run unit-test:node && npm run integration-test:node",
65+
"test:browser": "npm run clean && tsc -p . && dev-tool run bundle && npm run unit-test:browser && npm run integration-test:browser",
66+
"test:node": "npm run clean && npm run unit-test:node && npm run integration-test:node",
6767
"test": "npm run clean && npm run build:test && npm run unit-test && npm run integration-test",
6868
"unit-test:browser": "dev-tool run test:browser",
6969
"unit-test:node": "dev-tool run test:node-ts-input -- --timeout 300000 --exclude 'test/**/browser/**/*.spec.ts' 'test/**/**/*.spec.ts'",

sdk/servicebus/service-bus/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@
4545
"bundle": "tsc -p . && dev-tool run bundle --polyfill-node false --inject-node-polyfills true --ignore-missing-node-builtins true",
4646
"build:browser": "npm run bundle",
4747
"build:node": "npm run bundle",
48-
"build:test:browser": "npm run bundle",
49-
"build:test:node": "npm run bundle",
50-
"build:test": "npm run bundle",
48+
"build:test": "echo skipped. actual commands inlined in browser test scripts",
5149
"build": "npm run clean && npm run bundle && npm run extract-api",
5250
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
5351
"clean": "rimraf --glob dist dist-* types *.tgz *.log coverage coverage-browser .nyc_output",
@@ -62,8 +60,8 @@
6260
"lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js",
6361
"pack": "npm pack 2>&1",
6462
"perf-test:node": "tsc -p . --module \"commonjs\" && node dist-esm/test/perf/track-2/index.spec.js",
65-
"test:browser": "npm run clean && npm run build:test:browser && npm run integration-test:browser",
66-
"test:node": "npm run clean && npm run build:test:node && npm run integration-test:node",
63+
"test:browser": "npm run clean && npm run bundle && npm run integration-test:browser",
64+
"test:node": "npm run clean && npm run integration-test:node",
6765
"test": "npm run test:node && npm run test:browser",
6866
"unit-test:browser": "echo skipped",
6967
"unit-test:node": "dev-tool run test:node-ts-input --no-test-proxy -- --timeout 1200000 --full-trace \"test/internal/unit/{,!(browser)/**/}*.spec.ts\"",

sdk/synapse/synapse-access-control/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,16 @@
100100
"build": "tsc && dev-tool run bundle && npm run minify && npm run extract-api",
101101
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
102102
"pack": "npm pack 2>&1",
103-
"build:test": "tsc -p . && dev-tool run bundle",
103+
"build:test": "echo skipped. actual commands inlined in browser test scripts",
104104
"integration-test:browser": "echo skip",
105105
"integration-test:node": "echo skip",
106106
"integration-test": "echo skip",
107107
"lint": "echo skip",
108108
"format": "echo skip format as this package has only auto generated code",
109109
"check-format": "echo skip format check as this package has only auto generated code",
110-
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
111-
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",
112-
"test": "npm run clean && npm run build:test && npm run unit-test",
110+
"test:browser": "npm run clean && tsc -p . && dev-tool run bundle && npm run unit-test:browser",
111+
"test:node": "npm run unit-test:node",
112+
"test": "npm run unit-test",
113113
"unit-test:browser": "dev-tool run test:browser",
114114
"unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 --exclude 'test/**/browser/*.spec.ts' 'test/**/*.spec.ts'",
115115
"unit-test": "npm run unit-test:node && npm run unit-test:browser",

0 commit comments

Comments
 (0)