Added support for browser coverage calculation
This commit is contained in:
Родитель
cf1110d3f7
Коммит
3910b3d1a3
|
@ -57,6 +57,9 @@ typings/
|
|||
/blob/typings/
|
||||
/blob/browser/
|
||||
/blob/dist-*/
|
||||
/blob/temp
|
||||
|
||||
test*.xml
|
||||
|
||||
# Visual Studio Code
|
||||
.vscode/
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
# browser #
|
||||
browser/azure-storage.blob.js
|
||||
browser/azure-storage.blob.js.map
|
||||
|
||||
# dist-esm #
|
||||
!dist-esm/lib/**/*.js
|
||||
dist-esm/test
|
||||
dist-esm/tests
|
||||
dist-esm/samples
|
||||
|
||||
# dist-test #
|
||||
|
@ -20,14 +21,14 @@ swagger/
|
|||
|
||||
# typings #
|
||||
!typings/lib/**/*.d.ts
|
||||
typings/test
|
||||
typings/tests
|
||||
typings/samples
|
||||
|
||||
# git #
|
||||
.git*
|
||||
|
||||
# Test #
|
||||
test/
|
||||
tests/
|
||||
|
||||
# Others #
|
||||
.vscode/
|
||||
|
@ -39,7 +40,6 @@ gulpfile.js
|
|||
.DS_Store
|
||||
tsconfig.json
|
||||
tslint.json
|
||||
*.js.map
|
||||
*.zip
|
||||
package-lock.json
|
||||
karma.conf.js
|
||||
|
@ -48,4 +48,9 @@ gulpfile.js
|
|||
rollup.config.js
|
||||
rollup.test.config.js
|
||||
*.html
|
||||
coverage/
|
||||
coverage/
|
||||
.nyc_output/
|
||||
test*.xml
|
||||
*.tgz
|
||||
coverage-browser
|
||||
.nycrc
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"include": [
|
||||
"lib/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"**/*.d.ts",
|
||||
"lib/highlevel.common.ts",
|
||||
"lib/models.ts",
|
||||
"lib/generated/storageClient.ts"
|
||||
],
|
||||
"extension": [
|
||||
".ts"
|
||||
],
|
||||
"require": [
|
||||
"ts-node/register"
|
||||
],
|
||||
"reporter": [
|
||||
"text-summary",
|
||||
"html"
|
||||
],
|
||||
"sourceMap": true,
|
||||
"instrument": true,
|
||||
"all": true
|
||||
}
|
|
@ -14,7 +14,10 @@ module.exports = function(config) {
|
|||
"karma-edge-launcher",
|
||||
"karma-firefox-launcher",
|
||||
"karma-ie-launcher",
|
||||
"karma-env-preprocessor"
|
||||
"karma-env-preprocessor",
|
||||
"karma-coverage",
|
||||
"karma-remap-coverage",
|
||||
"karma-junit-reporter"
|
||||
],
|
||||
|
||||
// list of files / patterns to load in the browser
|
||||
|
@ -30,7 +33,10 @@ module.exports = function(config) {
|
|||
// preprocess matching files before serving them to the browser
|
||||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
||||
preprocessors: {
|
||||
"**/*.js": ["env"]
|
||||
"**/*.js": ["env"],
|
||||
// IMPORTANT: COMMENT following line if you want to debug in your browsers!!
|
||||
// Preprocess source file to calculate code coverage, however this will make source file unreadable
|
||||
"dist-test/index.browser.js": ["coverage"]
|
||||
},
|
||||
|
||||
// inject following environment values into browser testing with window.__env__
|
||||
|
@ -41,7 +47,30 @@ module.exports = function(config) {
|
|||
// test results reporter to use
|
||||
// possible values: 'dots', 'progress'
|
||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||
reporters: ["mocha"],
|
||||
reporters: ["mocha", "coverage", "remap-coverage", "junit"],
|
||||
|
||||
coverageReporter: { type: "in-memory" },
|
||||
|
||||
// Coverage report settings
|
||||
remapCoverageReporter: {
|
||||
"text-summary": null, // to show summary in console
|
||||
html: "./coverage-browser"
|
||||
},
|
||||
|
||||
// Exclude coverage calculation for following files
|
||||
remapOptions: {
|
||||
exclude: /node_modules|tests/g
|
||||
},
|
||||
|
||||
junitReporter: {
|
||||
outputDir: "", // results will be saved as $outputDir/$browserName.xml
|
||||
outputFile: "", // if included, results will be saved as $outputDir/$browserName/$outputFile
|
||||
suite: "", // suite will become the package name attribute in xml testsuite element
|
||||
useBrowserName: true, // add browser name to report and classes names
|
||||
nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element
|
||||
classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element
|
||||
properties: {} // key value pair of properties to add to the <properties> section of the report
|
||||
},
|
||||
|
||||
// web server port
|
||||
port: 9876,
|
||||
|
|
|
@ -256,8 +256,7 @@
|
|||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
|
||||
"integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=",
|
||||
"dev": true,
|
||||
"optional": true
|
||||
"dev": true
|
||||
},
|
||||
"ansi-colors": {
|
||||
"version": "1.1.0",
|
||||
|
@ -392,6 +391,12 @@
|
|||
"integrity": "sha1-p5SvDAWrF1KEbudTofIRoFugxE8=",
|
||||
"dev": true
|
||||
},
|
||||
"array-find-index": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz",
|
||||
"integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=",
|
||||
"dev": true
|
||||
},
|
||||
"array-initial": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/array-initial/-/array-initial-1.1.0.tgz",
|
||||
|
@ -557,7 +562,7 @@
|
|||
},
|
||||
"axios": {
|
||||
"version": "0.18.0",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz",
|
||||
"resolved": "http://registry.npmjs.org/axios/-/axios-0.18.0.tgz",
|
||||
"integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=",
|
||||
"requires": {
|
||||
"follow-redirects": "^1.3.0",
|
||||
|
@ -842,6 +847,24 @@
|
|||
"integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=",
|
||||
"dev": true
|
||||
},
|
||||
"camelcase-keys": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "http://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
|
||||
"integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"camelcase": "^2.0.0",
|
||||
"map-obj": "^1.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"camelcase": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz",
|
||||
"integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"chalk": {
|
||||
"version": "2.4.1",
|
||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz",
|
||||
|
@ -1162,6 +1185,15 @@
|
|||
"which": "^1.2.9"
|
||||
}
|
||||
},
|
||||
"currently-unhandled": {
|
||||
"version": "0.4.1",
|
||||
"resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz",
|
||||
"integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"array-find-index": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"custom-event": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/custom-event/-/custom-event-1.0.1.tgz",
|
||||
|
@ -1183,6 +1215,16 @@
|
|||
"integrity": "sha1-YV6CjiM90aubua4JUODOzPpuytg=",
|
||||
"dev": true
|
||||
},
|
||||
"dateformat": {
|
||||
"version": "1.0.12",
|
||||
"resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.12.tgz",
|
||||
"integrity": "sha1-nxJLZ1lMk3/3BpMuSmQsyo27/uk=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"get-stdin": "^4.0.1",
|
||||
"meow": "^3.3.0"
|
||||
}
|
||||
},
|
||||
"debug": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
|
||||
|
@ -2560,6 +2602,12 @@
|
|||
"integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==",
|
||||
"dev": true
|
||||
},
|
||||
"get-stdin": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz",
|
||||
"integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=",
|
||||
"dev": true
|
||||
},
|
||||
"get-stream": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
|
||||
|
@ -3009,6 +3057,15 @@
|
|||
"safer-buffer": ">= 2.1.2 < 3"
|
||||
}
|
||||
},
|
||||
"indent-string": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz",
|
||||
"integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"repeating": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"indexof": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz",
|
||||
|
@ -3174,6 +3231,15 @@
|
|||
"integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=",
|
||||
"dev": true
|
||||
},
|
||||
"is-finite": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz",
|
||||
"integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"number-is-nan": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"is-fullwidth-code-point": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
|
||||
|
@ -3506,6 +3572,19 @@
|
|||
"which": "^1.2.1"
|
||||
}
|
||||
},
|
||||
"karma-coverage": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/karma-coverage/-/karma-coverage-1.1.2.tgz",
|
||||
"integrity": "sha512-eQawj4Cl3z/CjxslYy9ariU4uDh7cCNFZHNWXWRpl0pNeblY/4wHR7M7boTYXWrn9bY0z2pZmr11eKje/S/hIw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"dateformat": "^1.0.6",
|
||||
"istanbul": "^0.4.0",
|
||||
"lodash": "^4.17.0",
|
||||
"minimatch": "^3.0.0",
|
||||
"source-map": "^0.5.1"
|
||||
}
|
||||
},
|
||||
"karma-edge-launcher": {
|
||||
"version": "0.4.2",
|
||||
"resolved": "https://registry.npmjs.org/karma-edge-launcher/-/karma-edge-launcher-0.4.2.tgz",
|
||||
|
@ -3536,6 +3615,24 @@
|
|||
"lodash": "^4.6.1"
|
||||
}
|
||||
},
|
||||
"karma-junit-reporter": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/karma-junit-reporter/-/karma-junit-reporter-1.2.0.tgz",
|
||||
"integrity": "sha1-T5xAzt+xo5X4rvh2q/lhiZF8Y5Y=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"path-is-absolute": "^1.0.0",
|
||||
"xmlbuilder": "8.2.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"xmlbuilder": {
|
||||
"version": "8.2.2",
|
||||
"resolved": "http://registry.npmjs.org/xmlbuilder/-/xmlbuilder-8.2.2.tgz",
|
||||
"integrity": "sha1-aSSGc0ELS6QuGmE2VR0pIjNap3M=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"karma-mocha": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/karma-mocha/-/karma-mocha-1.3.0.tgz",
|
||||
|
@ -3581,6 +3678,15 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"karma-remap-coverage": {
|
||||
"version": "0.1.5",
|
||||
"resolved": "https://registry.npmjs.org/karma-remap-coverage/-/karma-remap-coverage-0.1.5.tgz",
|
||||
"integrity": "sha512-FM5h8eHcHbMMR+2INBUxD+4+wUbkCnobfn5uWprkLyj6Xcm2MRFQOuAJn9h2H13nNso6rk+QoNpHd5xCevlPOw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"remap-istanbul": "^0.10"
|
||||
}
|
||||
},
|
||||
"kind-of": {
|
||||
"version": "6.0.2",
|
||||
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz",
|
||||
|
@ -3705,6 +3811,16 @@
|
|||
"streamroller": "0.7.0"
|
||||
}
|
||||
},
|
||||
"loud-rejection": {
|
||||
"version": "1.6.0",
|
||||
"resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
|
||||
"integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"currently-unhandled": "^0.4.1",
|
||||
"signal-exit": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"magic-string": {
|
||||
"version": "0.22.5",
|
||||
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.22.5.tgz",
|
||||
|
@ -3735,6 +3851,12 @@
|
|||
"integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=",
|
||||
"dev": true
|
||||
},
|
||||
"map-obj": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz",
|
||||
"integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=",
|
||||
"dev": true
|
||||
},
|
||||
"map-visit": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz",
|
||||
|
@ -3796,6 +3918,32 @@
|
|||
"integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=",
|
||||
"dev": true
|
||||
},
|
||||
"meow": {
|
||||
"version": "3.7.0",
|
||||
"resolved": "http://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
|
||||
"integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"camelcase-keys": "^2.0.0",
|
||||
"decamelize": "^1.1.2",
|
||||
"loud-rejection": "^1.0.0",
|
||||
"map-obj": "^1.0.1",
|
||||
"minimist": "^1.1.3",
|
||||
"normalize-package-data": "^2.3.4",
|
||||
"object-assign": "^4.0.1",
|
||||
"read-pkg-up": "^1.0.1",
|
||||
"redent": "^1.0.0",
|
||||
"trim-newlines": "^1.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"minimist": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
|
||||
"integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"merge-stream": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz",
|
||||
|
@ -5186,6 +5334,12 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"object-assign": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
|
||||
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
|
||||
"dev": true
|
||||
},
|
||||
"object-component": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz",
|
||||
|
@ -5807,6 +5961,16 @@
|
|||
"resolve": "^1.1.6"
|
||||
}
|
||||
},
|
||||
"redent": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz",
|
||||
"integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"indent-string": "^2.1.0",
|
||||
"strip-indent": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"regex-cache": {
|
||||
"version": "0.4.4",
|
||||
"resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz",
|
||||
|
@ -5826,6 +5990,64 @@
|
|||
"safe-regex": "^1.1.0"
|
||||
}
|
||||
},
|
||||
"remap-istanbul": {
|
||||
"version": "0.10.1",
|
||||
"resolved": "https://registry.npmjs.org/remap-istanbul/-/remap-istanbul-0.10.1.tgz",
|
||||
"integrity": "sha512-gsNQXs5kJLhErICSyYhzVZ++C8LBW8dgwr874Y2QvzAUS75zBlD/juZgXs39nbYJ09fZDlX2AVLVJAY2jbFJoQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"amdefine": "^1.0.0",
|
||||
"istanbul": "0.4.5",
|
||||
"minimatch": "^3.0.3",
|
||||
"plugin-error": "^0.1.2",
|
||||
"source-map": "^0.6.1",
|
||||
"through2": "2.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"process-nextick-args": {
|
||||
"version": "1.0.7",
|
||||
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz",
|
||||
"integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=",
|
||||
"dev": true
|
||||
},
|
||||
"readable-stream": {
|
||||
"version": "2.0.6",
|
||||
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.0.6.tgz",
|
||||
"integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"core-util-is": "~1.0.0",
|
||||
"inherits": "~2.0.1",
|
||||
"isarray": "~1.0.0",
|
||||
"process-nextick-args": "~1.0.6",
|
||||
"string_decoder": "~0.10.x",
|
||||
"util-deprecate": "~1.0.1"
|
||||
}
|
||||
},
|
||||
"source-map": {
|
||||
"version": "0.6.1",
|
||||
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||
"dev": true
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "0.10.31",
|
||||
"resolved": "http://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
|
||||
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
|
||||
"dev": true
|
||||
},
|
||||
"through2": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "http://registry.npmjs.org/through2/-/through2-2.0.1.tgz",
|
||||
"integrity": "sha1-OE51MU1J8y3hLuu4E2uOtrXVnak=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"readable-stream": "~2.0.0",
|
||||
"xtend": "~4.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"remove-bom-buffer": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz",
|
||||
|
@ -5865,6 +6087,15 @@
|
|||
"integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=",
|
||||
"dev": true
|
||||
},
|
||||
"repeating": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz",
|
||||
"integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"is-finite": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"replace-ext": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz",
|
||||
|
@ -6016,6 +6247,16 @@
|
|||
"integrity": "sha512-rZqFD43y4U9nSqVq3iyWBiDwmBQJY8Txi04yI9jTKD3xcl7CbFjh1qRpQshUB3sONLubDzm7vJiwB+1MEGv67w==",
|
||||
"dev": true
|
||||
},
|
||||
"rollup-plugin-sourcemaps": {
|
||||
"version": "0.4.2",
|
||||
"resolved": "https://registry.npmjs.org/rollup-plugin-sourcemaps/-/rollup-plugin-sourcemaps-0.4.2.tgz",
|
||||
"integrity": "sha1-YhJaqUCHqt97g+9N+vYptHMTXoc=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"rollup-pluginutils": "^2.0.1",
|
||||
"source-map-resolve": "^0.5.0"
|
||||
}
|
||||
},
|
||||
"rollup-plugin-uglify": {
|
||||
"version": "5.0.2",
|
||||
"resolved": "https://registry.npmjs.org/rollup-plugin-uglify/-/rollup-plugin-uglify-5.0.2.tgz",
|
||||
|
@ -6311,6 +6552,12 @@
|
|||
"integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
|
||||
"dev": true
|
||||
},
|
||||
"signal-exit": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
|
||||
"integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
|
||||
"dev": true
|
||||
},
|
||||
"snapdragon": {
|
||||
"version": "0.8.2",
|
||||
"resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz",
|
||||
|
@ -6679,6 +6926,15 @@
|
|||
"is-utf8": "^0.2.0"
|
||||
}
|
||||
},
|
||||
"strip-indent": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz",
|
||||
"integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"get-stdin": "^4.0.1"
|
||||
}
|
||||
},
|
||||
"supports-color": {
|
||||
"version": "5.4.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz",
|
||||
|
@ -6815,6 +7071,12 @@
|
|||
"punycode": "^1.4.1"
|
||||
}
|
||||
},
|
||||
"trim-newlines": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz",
|
||||
"integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=",
|
||||
"dev": true
|
||||
},
|
||||
"trim-right": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz",
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
"browser": {
|
||||
"./dist/index.js": "./browser/azure-storage.blob.min.js",
|
||||
"./dist-esm/lib/index.js": "./dist-esm/lib/index.browser.js",
|
||||
"./dist-esm/test/utils/index.js": "./dist-esm/test/utils/index.browser.js",
|
||||
"./dist-esm/tests/utils/index.js": "./dist-esm/tests/utils/index.browser.js",
|
||||
"./dist-esm/lib/BlobDownloadResponse.js": "./dist-esm/lib/BlobDownloadResponse.browser.js",
|
||||
"os": false,
|
||||
"process": false
|
||||
|
@ -32,12 +32,15 @@
|
|||
"istanbul": "^0.4.5",
|
||||
"karma": "^3.0.0",
|
||||
"karma-chrome-launcher": "^2.2.0",
|
||||
"karma-coverage": "^1.1.2",
|
||||
"karma-edge-launcher": "^0.4.2",
|
||||
"karma-env-preprocessor": "^0.1.1",
|
||||
"karma-firefox-launcher": "^1.1.0",
|
||||
"karma-ie-launcher": "^1.0.0",
|
||||
"karma-junit-reporter": "^1.2.0",
|
||||
"karma-mocha": "^1.3.0",
|
||||
"karma-mocha-reporter": "^2.2.5",
|
||||
"karma-remap-coverage": "^0.1.5",
|
||||
"mocha": "^5.2.0",
|
||||
"nyc": "^13.1.0",
|
||||
"rimraf": "^2.6.2",
|
||||
|
@ -47,6 +50,7 @@
|
|||
"rollup-plugin-node-resolve": "^3.4.0",
|
||||
"rollup-plugin-replace": "^2.0.0",
|
||||
"rollup-plugin-shim": "^1.0.0",
|
||||
"rollup-plugin-sourcemaps": "^0.4.2",
|
||||
"rollup-plugin-uglify": "^5.0.2",
|
||||
"rollup-plugin-visualizer": "^0.9.0",
|
||||
"source-map-support": "^0.5.9",
|
||||
|
@ -55,8 +59,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"test": "npm run test:node && npm run test:browser",
|
||||
"test:node": "mocha --no-timeouts dist-test/index.js",
|
||||
"test:nodecoverage": "cross-env TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\": \\\"commonjs\\\"}\" nyc mocha --compilers ts-node/register --require source-map-support/register --full-trace --no-timeouts test/*.test.ts test/node/*.test.ts",
|
||||
"test:node": "cross-env TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\": \\\"commonjs\\\"}\" nyc mocha --compilers ts-node/register --require source-map-support/register --full-trace --no-timeouts tests/*.test.ts tests/node/*.test.ts",
|
||||
"test:browser": "karma start --single-run",
|
||||
"build": "npm run build:es6 && npm run build:nodebrowser && npm run build:browserzip && npm run build:test",
|
||||
"build:test": "rollup -c rollup.test.config.js",
|
||||
|
@ -64,28 +67,7 @@
|
|||
"build:es6": "tsc -p tsconfig.json",
|
||||
"build:autorest": "autorest ./swagger/README.md --typescript --use=@microsoft.azure/autorest.typescript@2.0.476",
|
||||
"build:browserzip": "gulp zip",
|
||||
"clean": "rimraf dist dist-esm dist-test typings temp browser/*.js* browser/*.zip statistics.html coverage"
|
||||
},
|
||||
"nyc": {
|
||||
"include": [
|
||||
"lib/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"**/*.d.ts"
|
||||
],
|
||||
"extension": [
|
||||
".ts"
|
||||
],
|
||||
"require": [
|
||||
"ts-node/register"
|
||||
],
|
||||
"reporter": [
|
||||
"text-summary",
|
||||
"html"
|
||||
],
|
||||
"sourceMap": true,
|
||||
"instrument": true,
|
||||
"all": true
|
||||
"clean": "rimraf dist dist-esm dist-test typings temp browser/*.js* browser/*.zip statistics.html coverage coverage-browser .nyc_output *.tgz *.log test*.xml TEST*.xml"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -86,7 +86,7 @@ const browserRollupConfigFactory = isProduction => {
|
|||
};
|
||||
|
||||
export default [
|
||||
nodeRollupConfigFactory(),
|
||||
browserRollupConfigFactory(false),
|
||||
browserRollupConfigFactory(true),
|
||||
browserRollupConfigFactory(false)
|
||||
nodeRollupConfigFactory()
|
||||
];
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
import multi from "rollup-plugin-multi-entry";
|
||||
import baseConfig from "./rollup.config";
|
||||
const [node, browser] = baseConfig;
|
||||
import sourcemaps from "rollup-plugin-sourcemaps";
|
||||
const [browser] = baseConfig;
|
||||
|
||||
node.input = ["dist-esm/test/*.js", "dist-esm/test/node/*.js"];
|
||||
node.output.file = "dist-test/index.js";
|
||||
node.plugins.unshift(multi());
|
||||
node.external.push("assert", "path");
|
||||
node.context = "null";
|
||||
|
||||
browser.input = ["dist-esm/test/*.js", "dist-esm/test/browser/*.js"];
|
||||
browser.input = ["dist-esm/tests/*.js", "dist-esm/tests/browser/*.js"];
|
||||
browser.output.sourcemap = "inline";
|
||||
browser.output.file = "dist-test/index.browser.js";
|
||||
browser.plugins.unshift(multi());
|
||||
browser.plugins.unshift(sourcemaps());
|
||||
browser.context = "null";
|
||||
|
||||
export default [node, browser];
|
||||
export default [browser];
|
||||
|
|
|
@ -15,7 +15,7 @@ describe("Aborter", () => {
|
|||
containerURL = ContainerURL.fromServiceURL(serviceURL, containerName);
|
||||
});
|
||||
|
||||
it("Should not abort after calling abort()", async () => {
|
||||
it.only("Should not abort after calling abort()", async () => {
|
||||
await containerURL.create(Aborter.none);
|
||||
});
|
||||
|
|
@ -21,5 +21,5 @@
|
|||
},
|
||||
"compileOnSave": true,
|
||||
"exclude": ["node_modules"],
|
||||
"include": ["./lib/**/*.ts", "./test/**/*.ts"]
|
||||
"include": ["./lib/**/*.ts", "./tests/**/*.ts"]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче