@elastic/synthetics 1.0.0-beta.22 → 1.0.0-beta.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/cli.js +55 -184
- package/dist/cli.js.map +1 -1
- package/dist/common_types.d.ts +40 -27
- package/dist/common_types.d.ts.map +1 -1
- package/dist/core/gatherer.d.ts +1 -2
- package/dist/core/gatherer.d.ts.map +1 -1
- package/dist/core/gatherer.js +3 -4
- package/dist/core/gatherer.js.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +7 -9
- package/dist/core/index.js.map +1 -1
- package/dist/core/runner.d.ts +1 -8
- package/dist/core/runner.d.ts.map +1 -1
- package/dist/core/runner.js +1 -2
- package/dist/core/runner.js.map +1 -1
- package/dist/dsl/journey.d.ts +4 -3
- package/dist/dsl/journey.d.ts.map +1 -1
- package/dist/dsl/journey.js +4 -3
- package/dist/dsl/journey.js.map +1 -1
- package/dist/dsl/step.d.ts +3 -2
- package/dist/dsl/step.d.ts.map +1 -1
- package/dist/dsl/step.js +2 -1
- package/dist/dsl/step.js.map +1 -1
- package/dist/formatter/javascript.d.ts +30 -5
- package/dist/formatter/javascript.d.ts.map +1 -1
- package/dist/formatter/javascript.js +44 -23
- package/dist/formatter/javascript.js.map +1 -1
- package/dist/helpers.d.ts +2 -1
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +30 -1
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -18
- package/dist/index.js.map +1 -1
- package/dist/{parse_args.d.ts → loader.d.ts} +2 -5
- package/dist/loader.d.ts.map +1 -0
- package/dist/loader.js +144 -0
- package/dist/loader.js.map +1 -0
- package/dist/options.d.ts +27 -0
- package/dist/options.d.ts.map +1 -0
- package/dist/options.js +108 -0
- package/dist/options.js.map +1 -0
- package/dist/plugins/network.d.ts +1 -4
- package/dist/plugins/network.d.ts.map +1 -1
- package/dist/plugins/network.js +2 -3
- package/dist/plugins/network.js.map +1 -1
- package/dist/reporters/json.js +5 -6
- package/dist/reporters/json.js.map +1 -1
- package/dist/sdk/trace-metrics.js +3 -4
- package/dist/sdk/trace-metrics.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/cli.ts +114 -188
- package/src/common_types.ts +44 -27
- package/src/core/gatherer.ts +1 -2
- package/src/core/index.ts +22 -16
- package/src/core/runner.ts +2 -22
- package/src/dsl/journey.ts +10 -4
- package/src/dsl/step.ts +9 -2
- package/src/formatter/javascript.ts +58 -21
- package/src/helpers.ts +40 -1
- package/src/index.ts +10 -16
- package/src/loader.ts +162 -0
- package/src/options.ts +116 -0
- package/dist/parse_args.d.ts.map +0 -1
- package/dist/parse_args.js +0 -103
- package/dist/parse_args.js.map +0 -1
- package/src/parse_args.ts +0 -158
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2018.full.d.ts","../node_modules/deepmerge/index.d.ts","../node_modules/playwright-chromium/types/protocol.d.ts","../node_modules/playwright-chromium/types/structs.d.ts","../node_modules/playwright-chromium/types/types.d.ts","../node_modules/playwright-chromium/index.d.ts","../node_modules/@types/braces/index.d.ts","../node_modules/@types/micromatch/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/sonic-boom/types/index.d.ts","../node_modules/kleur/colors.d.ts","../src/helpers.ts","../src/plugins/plugin-manager.ts","../src/plugins/network.ts","../src/plugins/performance.ts","../src/core/logger.ts","../src/sdk/lh-trace-processor.ts","../src/sdk/trace-processor.ts","../src/sdk/trace-metrics.ts","../src/plugins/tracing.ts","../src/plugins/browser-console.ts","../src/plugins/index.ts","../src/core/gatherer.ts","../src/core/runner.ts","../src/reporters/reporter.ts","../src/reporters/base.ts","../node_modules/@types/sharp/index.d.ts","../node_modules/snakecase-keys/index.d.ts","../src/reporters/json.ts","../src/reporters/junit.ts","../src/reporters/index.ts","../src/common_types.ts","../src/dsl/step.ts","../src/dsl/journey.ts","../src/dsl/index.ts","../src/core/index.ts","../node_modules/commander/typings/index.d.ts","../src/parse_args.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/expect/node_modules/@jest/types/build/Global.d.ts","../node_modules/expect/node_modules/@jest/types/build/Circus.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/expect/node_modules/@types/yargs/index.d.ts","../node_modules/expect/node_modules/@jest/types/build/Config.d.ts","../node_modules/expect/node_modules/@jest/types/build/TestResult.d.ts","../node_modules/expect/node_modules/@jest/types/build/Transform.d.ts","../node_modules/expect/node_modules/@jest/types/build/index.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/cleanupSemantic.d.ts","../node_modules/jest-matcher-utils/node_modules/pretty-format/build/types.d.ts","../node_modules/jest-matcher-utils/node_modules/pretty-format/build/index.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/types.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/diffLines.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/printDiffs.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/jestMatchersObject.d.ts","../node_modules/expect/build/types.d.ts","../node_modules/expect/build/index.d.ts","../src/core/expect.ts","../src/formatter/javascript.ts","../src/index.ts","../src/config.ts","../src/cli.ts","../src/core/browser-service.ts","../src/run-browser-service.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs/index.d.ts","../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"32b8443be144970b813b9dd72dcdba2059fbdfdae4d3a50c4d8a158ed6057bbe","f163b1edf76fbde01836f8522fbe646fe2f55e313bb7fdd363891748f9b57c60","5702e0d5e21d7f4c9c5f7ed4997d5b02051ab5229c146c540a99dc37d87f24af","ca412d8c03f6a01192f1a8a67c6dca96051d5dbf0fb16c95bf12eae4b5fef652","ab6f209719cb8418ad80948f900ead4f2e3fbd468cd328f22f87928982814814","7a8ec10b0834eb7183e4bfcd929838ac77583828e343211bb73676d1e47f6f01","cfb42d1c8aa66607ef3b1e2cee85d28148358ba62dc5e5146b317dae7bfd9a96","9c36d6df17ca69a65a2a654d9bbd86d74c6d6055e566429cd0a1de82827680eb",{"version":"25b4a0c4fab47c373ee49df4c239826ee3430019fc0c1b5e59edc3e398b7468d","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","a473cf45c3d9809518f8af913312139d9f4db6887dc554e0d06d0f4e52722e6b","a668dfae917097b30fc29bbebeeb869cee22529f2aa9976cea03c7e834a1b841","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","0084b54e281a37c75079f92ca20603d5731de063e7a425852b2907de4dd19932","797a9d37eb1f76143311c3f0a186ce5c0d8735e94c0ca08ff8712a876c9b4f9e","bc31e01146eec89eb870b9ad8c55d759bcbc8989a894e6f0f81f832e0d10eb04",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"153d835dc32985120790e10102834b0a5bd979bb5e42bfbb33c0ff6260cf03ce","affectsGlobalScope":true},"a44c87a409b60f211a240341905d818f5f173420dcf7f989ee6c8a1a3d812ae9","bdaf554ae2d9d09e2a42f58a29ef7f80e5b5c1d7b96bfb717243dc91a477216e","dce8672a79c7221c10a355b905940ab57505bc480a72a5da33ba24cbf82bb75c","321ea733ae7f611077a2d7b4bc378ac4a6b7e365e1a51c71a7e5b2818e1e310a","13257840c0850d4ebd7c2b17604a9e006f752de76c2400ebc752bc465c330452","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","ae7b9d7ab1652cc1866ba6e269d0eeaf1708d07327714124ed2cbd059f5e4766","69640cc2e76dad52daeb9914e6b70c5c9a5591a3a65190a2d3ea432cf0015e16","21e64a125f65dff99cc3ed366c96e922b90daed343eb52ecdace5f220401dcda","4982d94cb6427263c8839d8d6324a8bbe129e931deb61a7380f8fad17ba2cfc0",{"version":"b0b00cf2e8107ab671243a73d2fbd6296a853bebe3fcfaaca293f65aaa245eaf","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","3b790d08129aca55fd5ae1672d1d26594147ac0d5f2eedc30c7575eb18daef7e","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","e7b5a3f40f19d9eea71890c70dfb37ac5dd82cbffe5f95bc8f23c536455732d0","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","0953427f9c2498f71dd912fdd8a81b19cf6925de3e1ad67ab9a77b9a0f79bf0b","f89a6d56f0267f6e73c707f8a89d2f38e9928e10bfa505f39a4f4bf954093aee","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","e649840284bab8c4d09cadc125cd7fbde7529690cc1a0881872b6a9cd202819b","a364b4a8a015ae377052fa4fac94204d79a69d879567f444c7ceff1b7a18482d","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","6c63cb179eda2be5ab45dc146fa4151bec8ce4781986935fe40adfc69cbbf214","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"4e0a4d84b15692ea8669fe4f3d05a4f204567906b1347da7a58b75f45bae48d3","ae68a04912ee5a0f589276f9ec60b095f8c40d48128a4575b3fdd7d93806931c","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","6c137dee82a61e14a1eb6a0ba56925b66fd83abf15acf72fe59a10b15e80e319","c621d85bf77a7236ed73ee49672b43ded019200001a70008030ebf321774e6f1","d2a2f3fd9fd566004a9e99237baeb5dc1e1bb6540e2628e7d15d60585677d9ad","e0fa7f8d94377b2e38adcbedc3ac0f7a20606a281d0644d90a36cc075dfc37b2","cd5981f14ce1d2b3cc40a13f8cb251bac91b80afc0d37452b70f287da0575152","f146274322647a7f69389cb83694c4adf51698a22ef99994a8939cba9941bb60","6fe0291d3b156ee9c464b016abd80fbb0ed2c9cfc3279016211b1b46553c2c52","2eff693c448b037e854d46382b88c661e211ee7509f805b66760b5d8d3f030a1","88ff747a6ca76a01c53fa7ce6a1a73417bfdc823e81d9ee4493cd4dbdf083399","de98b87f10311ac7a68365a371df9e54d646576e67466f09387e2497ddcb22b1","f28cfe009e074239304847ac8a6c7b09b33f313f48b8b9157665c46e55df0e79","b5181e9421db9ab3461629c094002ce1e69778f363336c6784f196b351f53e33","1d4401a85cd2fc69df8effe2d15d673aad659296fccc1228ea328c5545e6c64a","4d7737bbeb90f349a8366d2f8a5e8b1715e45cb8118120bdd4d4e35f2e77964f","fd1d5a3f4022eaa62c677a2be14831a816ebc654e9a872e6555cbcf1d1bc95cb","b9b79f01f9b7dfa064902cb3c191743587da8c21002d99db401e9a9c732f5900","8edee55e31b8a4536a5da22618125a19fea713e72d2de75b4c482b63941cb24d","a3ba6a4c7903084e40c816454a64aa16f154e8ff3eea60d963817453582437ac","68be16a65e76ebe8b2fdf643f18522cc16260c394d69e23acdbf6c31efd3b6b8","68bf2547c99e4b015a4d2ab72457ad03ee68efc06ce0f5b06aefa0ba6ce1be88","52a1e1b7fa25dfc12bc00aa0aa2fd2333c55f891a56b4631ba9d35d55c73815d","9bcaf2ed64bf2c06d2884191bde3397ebf4b15a8d98700e23f8d8d9daa8c04b7","bad54daa0f4ff93c307ac9f807140e0d812815ec4f98fd0ee75b50dcca96cd49","bf4a6285e056833c8a8a5991eec8ae4623160e95b3dd3fc8901b71d9e3cb35e5","8378795d22bbddbeadb9da90a84d136918597f7052f9ae1f17d26391bd651837","b6f4a5757ca12b95af1d5b0ab2b04049cb0272cf256f0708150a6850b7c28bd1","b66519e16229b704374ea63956a9f46b638d7c109640d4e745c718990cd0d34d","c363874ffb0a11193e50c5a01fb646f80a24210a28c32cffd13039eefdf4b822","5cb8e940313a5dfb1eea8025ce3f3426de46b3f7caa25676ed9b31d77bc918d0","49c29c859785c0b60525489755c1ed60de0dbda8bc070a21a9f6359279985c6f","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","abc9254937b81009aab90a3a99c615cbfb6b163b39a69012f4136343e325604e","95b6c669e7ed7c5358c03f8aa24986640f6125ee81bb99e70e9155974f7fd253","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","905c3e8f7ddaa6c391b60c05b2f4c3931d7127ad717a080359db3df510b7bdab","3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f","1db6491f25ced62f23f06d1f3700a790df0971726acb33669bbf4a8de2f769a9","6c6699a10f2a0dc8efcba6095b7382f37c4445e7b5a4117fd3e17ea379642ff8","ef62b4aa372f77458d84c26614b44129f929e263c81b5cd1034f5828a5530412","8610558ae88a43ad794c4ab1da4f0e8e174e0357c88f6cbb21f523e67414e9a9","0b0feb9837c561c0a67b61024328045bb16bac6e4b10f7b0b217d3b8b43b0b12","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73","100db324c7664a9a2a4b76d7131fc69dfdf38d24542afc19825d05f401259fab","80b186d68c99a4cc9443cb3cab6eb9a2a136c65a9973ed403761961ca2cd94e6","00e95882237b1f291eb7ed34acf069003d2e6dc977c374f9798d7ad59b4aabbd",{"version":"68565a1933f3c8bdad53ec9ffbd36def39501f48a91ba78f927d292d0727d63d","affectsGlobalScope":true},"b52a04fa27476d8739849d11a4bd1b6082199567c0f1429b6b0fed1f5bd59fe5","90b52517299650b603611b8679db61b6a7d74c8dbe8b00768725ca429cade296","cc0dd6f1e1edc5c6714584c81b13639d85770cc8c9d198ba9a50cd54d2d2584f","73b398dee0a45c396345422ec2c3c274c73b880a906f5f686a06cf6ba6739c14","e3acb73a594a33b697e60bd8f816b15da36168baaf956891fa06edf0eba5a17a","424a6a1e8343e7b4e0f98166d58b6a2c61c5000ef6b79f14a74264944b28efb5","d5d7b68f5369a210c235cd65458369888f8b839192d088c964f21cab3ac954db","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","64b867c61effed7b5bc0cc06b3d8eac23b067a3fba581fc7d3c292fa593e6a45","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","dd5647a9ccccb2b074dca8a02b00948ac293091ebe73fdf2e6e98f718819f669","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb",{"version":"6ff2ca51e2c9d88d6d904c481879b12ec0cad2a69b88e220859a52207444773b","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","9d9e658d1d5b805562749ce383ef8c67ccb796394d8734d9c138788d7dab6ee3","c6c4fea9acc55d5e38ff2b70d57ab0b5cdbd08f8bc5d7a226e322cea128c5b57","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"noImplicitOverride":true,"outDir":"./","sourceMap":true,"target":5},"fileIdsList":[[145],[145,146,147,148,149],[145,147],[52,85],[115],[119],[129,133],[38],[82,83],[51,52,59,68],[43,51,59],[75],[47,52,60],[68],[49,51,59],[51],[51,53,68,74],[52],[59,68,74],[51,52,54,59,68,71,74],[54,71,74],[84],[74],[49,51,68],[41],[73],[66,75,77],[59],[40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81],[65],[51,53,68,74,77],[68,85],[121],[51,68,85],[136],[126,134,135],[85,116],[85,118,120,122],[85,115],[116,117,123,124,125],[127,130,131,132],[118,133],[127,130],[129],[128],[36],[34,35,43,51,68],[51,85],[33,61,63,88,92,112,114,138,140,141],[34,37,107,111],[61,88,108],[37,54,74,92],[136,137],[37,92,98,100,108],[92,100,108,111],[87,88],[51,53,61,88,92,98,99,107,108,109,110],[109,110],[37,39,108,109],[108],[52,60,61,62,75,87,108],[37,100,107,108,112,138,139],[88,107,108,113],[88,108,111],[89,90,91,96,97],[34,88,108,111],[98,108,111],[94,95,108],[86,87,88,100,101],[101,102,105,106],[47,52,61,88,98,102,103,104,108,111],[52,61,88,102],[100],[143],[92],[94,108],[92,93,95,108]],"referencedMap":[[147,1],[150,2],[146,1],[148,3],[149,1],[151,4],[119,5],[120,6],[154,7],[39,8],[84,9],[43,10],[44,11],[45,12],[46,13],[47,14],[48,15],[50,16],[51,16],[52,17],[53,18],[54,19],[55,20],[56,21],[85,22],[57,16],[58,23],[59,24],[62,25],[63,26],[66,16],[67,27],[68,16],[71,28],[82,29],[73,28],[74,30],[76,14],[78,31],[79,14],[103,32],[159,33],[160,34],[137,35],[135,35],[136,36],[117,37],[123,38],[116,39],[126,40],[122,33],[152,41],[134,42],[131,43],[133,41],[132,43],[130,44],[129,45],[37,46],[35,46],[36,47],[153,45],[86,48],[142,49],[108,50],[141,51],[143,52],[138,53],[99,54],[112,55],[92,56],[100,57],[111,58],[110,59],[109,60],[88,61],[140,62],[114,63],[97,64],[98,65],[90,66],[91,60],[89,67],[96,68],[102,69],[107,70],[105,71],[106,72],[101,73],[144,74],[93,75],[95,76],[94,77]],"exportedModulesMap":[[147,1],[150,2],[146,1],[148,3],[149,1],[151,4],[119,5],[120,6],[154,7],[39,8],[84,9],[43,10],[44,11],[45,12],[46,13],[47,14],[48,15],[50,16],[51,16],[52,17],[53,18],[54,19],[55,20],[56,21],[85,22],[57,16],[58,23],[59,24],[62,25],[63,26],[66,16],[67,27],[68,16],[71,28],[82,29],[73,28],[74,30],[76,14],[78,31],[79,14],[103,32],[159,33],[160,34],[137,35],[135,35],[136,36],[117,37],[123,38],[116,39],[126,40],[122,33],[152,41],[134,42],[131,43],[133,41],[132,43],[130,44],[129,45],[37,46],[35,46],[36,47],[153,45],[86,48],[142,49],[108,50],[141,51],[143,52],[138,53],[99,54],[112,55],[92,56],[100,57],[111,58],[110,59],[109,60],[88,61],[140,62],[114,63],[97,64],[98,65],[90,66],[91,60],[89,67],[96,68],[102,69],[107,70],[105,71],[106,72],[101,73],[144,74],[93,75],[95,76],[94,77]],"semanticDiagnosticsPerFile":[147,145,150,146,148,149,38,151,115,119,120,154,155,39,83,41,84,42,43,44,45,46,47,48,49,50,51,52,53,40,80,54,55,56,85,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,82,73,74,75,76,77,81,78,79,156,157,103,158,121,159,160,118,113,33,137,135,136,117,123,116,124,125,126,122,152,134,127,131,133,132,130,129,128,87,37,34,35,36,153,104,86,6,7,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,32,27,28,29,30,1,31,9,8,142,108,141,143,138,99,112,92,100,111,110,109,139,88,140,114,97,98,90,91,89,96,102,107,105,106,101,144,93,95,94]},"version":"4.5.5"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2020.full.d.ts","../node_modules/commander/typings/index.d.ts","../node_modules/playwright-chromium/types/protocol.d.ts","../node_modules/playwright-chromium/types/structs.d.ts","../node_modules/playwright-chromium/types/types.d.ts","../node_modules/playwright-chromium/index.d.ts","../node_modules/@types/braces/index.d.ts","../node_modules/@types/micromatch/index.d.ts","../src/dsl/step.ts","../src/dsl/journey.ts","../src/dsl/index.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/sonic-boom/types/index.d.ts","../node_modules/kleur/colors.d.ts","../node_modules/@cspotcode/source-map-consumer/source-map.d.ts","../node_modules/@cspotcode/source-map-support/source-map-support.d.ts","../src/helpers.ts","../src/plugins/plugin-manager.ts","../src/plugins/network.ts","../src/plugins/performance.ts","../src/core/logger.ts","../src/sdk/lh-trace-processor.ts","../src/sdk/trace-processor.ts","../src/sdk/trace-metrics.ts","../src/plugins/tracing.ts","../src/plugins/browser-console.ts","../src/plugins/index.ts","../src/core/gatherer.ts","../src/core/runner.ts","../src/reporters/reporter.ts","../src/reporters/base.ts","../node_modules/@types/sharp/index.d.ts","../node_modules/snakecase-keys/index.d.ts","../src/reporters/json.ts","../src/reporters/junit.ts","../src/reporters/index.ts","../src/common_types.ts","../node_modules/deepmerge/index.d.ts","../src/config.ts","../src/options.ts","../src/core/index.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/expect/node_modules/@jest/types/build/global.d.ts","../node_modules/expect/node_modules/@jest/types/build/circus.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/expect/node_modules/@types/yargs/index.d.ts","../node_modules/expect/node_modules/@jest/types/build/config.d.ts","../node_modules/expect/node_modules/@jest/types/build/testresult.d.ts","../node_modules/expect/node_modules/@jest/types/build/transform.d.ts","../node_modules/expect/node_modules/@jest/types/build/index.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/cleanupsemantic.d.ts","../node_modules/jest-matcher-utils/node_modules/pretty-format/build/types.d.ts","../node_modules/jest-matcher-utils/node_modules/pretty-format/build/index.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/types.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/difflines.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/printdiffs.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/jestmatchersobject.d.ts","../node_modules/expect/build/types.d.ts","../node_modules/expect/build/index.d.ts","../src/core/expect.ts","../src/loader.ts","../src/formatter/javascript.ts","../src/index.ts","../src/cli.ts","../src/core/browser-service.ts","../src/run-browser-service.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs/index.d.ts","../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"f58c6d0669d1ee04b2fcb0e87fb949b6828602f3f29c7bf6c76a214f16fd50d5","5cb8e940313a5dfb1eea8025ce3f3426de46b3f7caa25676ed9b31d77bc918d0","5702e0d5e21d7f4c9c5f7ed4997d5b02051ab5229c146c540a99dc37d87f24af","ca412d8c03f6a01192f1a8a67c6dca96051d5dbf0fb16c95bf12eae4b5fef652","ab6f209719cb8418ad80948f900ead4f2e3fbd468cd328f22f87928982814814","7a8ec10b0834eb7183e4bfcd929838ac77583828e343211bb73676d1e47f6f01","cfb42d1c8aa66607ef3b1e2cee85d28148358ba62dc5e5146b317dae7bfd9a96","9c36d6df17ca69a65a2a654d9bbd86d74c6d6055e566429cd0a1de82827680eb","1e421ddd61b9216d1236a719d75097dcb6eb9b1c35676190646ca67ee5ee37a7","ba4057fbaa88431096402ee11451f9b50876dfade301d34afec67a354bb115b7","b66519e16229b704374ea63956a9f46b638d7c109640d4e745c718990cd0d34d",{"version":"25b4a0c4fab47c373ee49df4c239826ee3430019fc0c1b5e59edc3e398b7468d","affectsGlobalScope":true},"e23424b97418eca3226fd24de079f1203eb70360622e4e093af2aff14d4be6ec","a473cf45c3d9809518f8af913312139d9f4db6887dc554e0d06d0f4e52722e6b","a668dfae917097b30fc29bbebeeb869cee22529f2aa9976cea03c7e834a1b841","04eaa93bd75f937f9184dcb95a7983800c5770cf8ddd8ac0f3734dc02f5b20ef",{"version":"c8155caf28fc7b0a564156a5df28ad8a844a3bd32d331d148d8f3ce88025c870","affectsGlobalScope":true},"45ac321f2e15d268fd74a90ddaa6467dcaaff2c5b13f95b4b85831520fb7a491","0084b54e281a37c75079f92ca20603d5731de063e7a425852b2907de4dd19932","797a9d37eb1f76143311c3f0a186ce5c0d8735e94c0ca08ff8712a876c9b4f9e","bc31e01146eec89eb870b9ad8c55d759bcbc8989a894e6f0f81f832e0d10eb04",{"version":"2866a528b2708aa272ec3eaafd3c980abb23aec1ef831cfc5eb2186b98c37ce5","affectsGlobalScope":true},{"version":"153d835dc32985120790e10102834b0a5bd979bb5e42bfbb33c0ff6260cf03ce","affectsGlobalScope":true},"a44c87a409b60f211a240341905d818f5f173420dcf7f989ee6c8a1a3d812ae9","bdaf554ae2d9d09e2a42f58a29ef7f80e5b5c1d7b96bfb717243dc91a477216e","dce8672a79c7221c10a355b905940ab57505bc480a72a5da33ba24cbf82bb75c","321ea733ae7f611077a2d7b4bc378ac4a6b7e365e1a51c71a7e5b2818e1e310a","13257840c0850d4ebd7c2b17604a9e006f752de76c2400ebc752bc465c330452","42176966283d3835c34278b9b5c0f470d484c0c0c6a55c20a2c916a1ce69b6e8","0cff7901aedfe78e314f7d44088f07e2afa1b6e4f0473a4169b8456ca2fb245d","ae7b9d7ab1652cc1866ba6e269d0eeaf1708d07327714124ed2cbd059f5e4766","69640cc2e76dad52daeb9914e6b70c5c9a5591a3a65190a2d3ea432cf0015e16","21e64a125f65dff99cc3ed366c96e922b90daed343eb52ecdace5f220401dcda","4982d94cb6427263c8839d8d6324a8bbe129e931deb61a7380f8fad17ba2cfc0",{"version":"b0b00cf2e8107ab671243a73d2fbd6296a853bebe3fcfaaca293f65aaa245eaf","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","992c6f6be16c0a1d2eec13ece33adeea2c747ba27fcd078353a8f4bb5b4fea58","3b790d08129aca55fd5ae1672d1d26594147ac0d5f2eedc30c7575eb18daef7e","a6b0abdb67d63ebe964ba5fee31bc3daf10c12eecd46b24d778426010c04c67e","e7b5a3f40f19d9eea71890c70dfb37ac5dd82cbffe5f95bc8f23c536455732d0","4fd3c4debadce3e9ab9dec3eb45f7f5e2e3d4ad65cf975a6d938d883cfb25a50","0953427f9c2498f71dd912fdd8a81b19cf6925de3e1ad67ab9a77b9a0f79bf0b","f89a6d56f0267f6e73c707f8a89d2f38e9928e10bfa505f39a4f4bf954093aee","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","dcc6910d95a3625fd2b0487fda055988e46ab46c357a1b3618c27b4a8dd739c9","e649840284bab8c4d09cadc125cd7fbde7529690cc1a0881872b6a9cd202819b","a364b4a8a015ae377052fa4fac94204d79a69d879567f444c7ceff1b7a18482d","60c9e27816ec8ac8df7240598bb086e95b47edfb454c5cbf4003c812e0ed6e39","6c63cb179eda2be5ab45dc146fa4151bec8ce4781986935fe40adfc69cbbf214","4926467de88a92a4fc9971d8c6f21b91eca1c0e7fc2a46cc4638ab9440c73875",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"4e0a4d84b15692ea8669fe4f3d05a4f204567906b1347da7a58b75f45bae48d3","ae68a04912ee5a0f589276f9ec60b095f8c40d48128a4575b3fdd7d93806931c","b3593bd345ebea5e4d0a894c03251a3774b34df3d6db57075c18e089a599ba76","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","6c137dee82a61e14a1eb6a0ba56925b66fd83abf15acf72fe59a10b15e80e319","c621d85bf77a7236ed73ee49672b43ded019200001a70008030ebf321774e6f1","d2a2f3fd9fd566004a9e99237baeb5dc1e1bb6540e2628e7d15d60585677d9ad","4d2ed619e48724def9b6ba8fe94809ba48d7590f778c65cc65c70e9209b54712","52969c1dbbbd68bab02d490e91a9ca033d8abf59f1d3d74f6de2f9c347c6d5d6","129333f7e22575bac6adecabbb2396ba116927e3f758fd512dc6a20ea08c6d52","cd5981f14ce1d2b3cc40a13f8cb251bac91b80afc0d37452b70f287da0575152","f146274322647a7f69389cb83694c4adf51698a22ef99994a8939cba9941bb60","6fe0291d3b156ee9c464b016abd80fbb0ed2c9cfc3279016211b1b46553c2c52","2eff693c448b037e854d46382b88c661e211ee7509f805b66760b5d8d3f030a1","88ff747a6ca76a01c53fa7ce6a1a73417bfdc823e81d9ee4493cd4dbdf083399","de98b87f10311ac7a68365a371df9e54d646576e67466f09387e2497ddcb22b1","f28cfe009e074239304847ac8a6c7b09b33f313f48b8b9157665c46e55df0e79","b5181e9421db9ab3461629c094002ce1e69778f363336c6784f196b351f53e33","1d4401a85cd2fc69df8effe2d15d673aad659296fccc1228ea328c5545e6c64a","4d7737bbeb90f349a8366d2f8a5e8b1715e45cb8118120bdd4d4e35f2e77964f","7b6749df50f7e3a3dbe6fe898a01ccd934cceb3de112c2794018398e54f41493","0b5b4afe792d48b725bd11f89d89e69bbaacb9ce68512580747887bec609600b","8edee55e31b8a4536a5da22618125a19fea713e72d2de75b4c482b63941cb24d","a3ba6a4c7903084e40c816454a64aa16f154e8ff3eea60d963817453582437ac","68be16a65e76ebe8b2fdf643f18522cc16260c394d69e23acdbf6c31efd3b6b8","68bf2547c99e4b015a4d2ab72457ad03ee68efc06ce0f5b06aefa0ba6ce1be88","52a1e1b7fa25dfc12bc00aa0aa2fd2333c55f891a56b4631ba9d35d55c73815d","9bcaf2ed64bf2c06d2884191bde3397ebf4b15a8d98700e23f8d8d9daa8c04b7","bad54daa0f4ff93c307ac9f807140e0d812815ec4f98fd0ee75b50dcca96cd49","ccf46ddd2d48401c2b639ed4f6b90ba6606826b8a18137511a426089d329ef93","f163b1edf76fbde01836f8522fbe646fe2f55e313bb7fdd363891748f9b57c60","cc0dd6f1e1edc5c6714584c81b13639d85770cc8c9d198ba9a50cd54d2d2584f","d7ba7dd550aa066c1c92dc65e2c6865579f914d0c2f4f29818d86a4e378940d0","89c624963411725a8575aaee510ca16bc846a763c44ada6fb6a070f9cbe99939","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","abc9254937b81009aab90a3a99c615cbfb6b163b39a69012f4136343e325604e","95b6c669e7ed7c5358c03f8aa24986640f6125ee81bb99e70e9155974f7fd253","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","905c3e8f7ddaa6c391b60c05b2f4c3931d7127ad717a080359db3df510b7bdab","3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f","1db6491f25ced62f23f06d1f3700a790df0971726acb33669bbf4a8de2f769a9","6c6699a10f2a0dc8efcba6095b7382f37c4445e7b5a4117fd3e17ea379642ff8","ef62b4aa372f77458d84c26614b44129f929e263c81b5cd1034f5828a5530412","8610558ae88a43ad794c4ab1da4f0e8e174e0357c88f6cbb21f523e67414e9a9","0b0feb9837c561c0a67b61024328045bb16bac6e4b10f7b0b217d3b8b43b0b12","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73","100db324c7664a9a2a4b76d7131fc69dfdf38d24542afc19825d05f401259fab","80b186d68c99a4cc9443cb3cab6eb9a2a136c65a9973ed403761961ca2cd94e6","00e95882237b1f291eb7ed34acf069003d2e6dc977c374f9798d7ad59b4aabbd",{"version":"68565a1933f3c8bdad53ec9ffbd36def39501f48a91ba78f927d292d0727d63d","affectsGlobalScope":true},"69c4cc400125f264607695570b60a4f14d30dd70cc652a59a362268a80efe265","5a2f98952a4cb957f276a5135cfeddebfb3f90f456b6e986b35114a7070ced95","362f9383da0f088c04f38f9cd3a05007c2070edb6ff2a2458969b17ec7a21ba5","9d22eb49964d9ed45ef8d4025c01d856a853181fbad03f87cfa9a4e4461d1d7b","e3acb73a594a33b697e60bd8f816b15da36168baaf956891fa06edf0eba5a17a","424a6a1e8343e7b4e0f98166d58b6a2c61c5000ef6b79f14a74264944b28efb5","d5d7b68f5369a210c235cd65458369888f8b839192d088c964f21cab3ac954db","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","64b867c61effed7b5bc0cc06b3d8eac23b067a3fba581fc7d3c292fa593e6a45","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","3b043cf9a81854a72963fdb57d1884fc4da1cf5be69b5e0a4c5b751e58cb6d88","dd5647a9ccccb2b074dca8a02b00948ac293091ebe73fdf2e6e98f718819f669","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb",{"version":"6ff2ca51e2c9d88d6d904c481879b12ec0cad2a69b88e220859a52207444773b","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","9d9e658d1d5b805562749ce383ef8c67ccb796394d8734d9c138788d7dab6ee3","c6c4fea9acc55d5e38ff2b70d57ab0b5cdbd08f8bc5d7a226e322cea128c5b57","6ba73232c9d3267ca36ddb83e335d474d2c0e167481e3dec416c782894e11438","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"noImplicitOverride":true,"outDir":"./","sourceMap":true,"target":7},"fileIdsList":[[159],[102],[159,160,161,162,163],[159,161],[66,99],[129],[133],[143,147],[49],[96,97],[65,66,73,82],[57,65,73],[89],[61,66,74],[82],[63,65,73],[65],[65,67,82,88],[66],[73,82,88],[65,66,68,73,82,85,88],[68,85,88],[98],[88],[63,65,82],[55],[87],[80,89,91],[73],[54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95],[79],[65,67,82,88,91],[82,99],[135],[65,82,99],[150],[140,148,149],[99,130],[99,132,134,136],[99,129],[130,131,137,138,139],[141,144,145,146],[132,147],[141,144],[143],[142],[47],[45,46,57,65,82],[65,99],[44,104,123,124,127,153,155],[45,48,53,123],[75,104,124],[48,68,88,108],[150,151],[48,108,114,124],[53,104,108,116,124],[101,104],[51,52,65,67,75,104,108,114,115,123,124],[51,52],[48,50,51,124],[124],[66,74,75,76,89,101,103,124],[48,116,123,124,128,152,154],[75,77,104,108,124,128,152],[104,124,125,126],[53,104,124],[105,106,107,112,113],[45,53,104,124],[53,114,124],[110,111,124],[100,101,104,116,117],[117,118,121,122],[53,61,66,75,104,114,118,119,120,124],[66,75,104,118],[116],[157],[108],[110,124],[108,109,111,124]],"referencedMap":[[161,1],[103,2],[164,3],[160,1],[162,4],[163,1],[165,5],[133,6],[134,7],[168,8],[50,9],[98,10],[57,11],[58,12],[59,13],[60,14],[61,15],[62,16],[64,17],[65,17],[66,18],[67,19],[68,20],[69,21],[70,22],[99,23],[71,17],[72,24],[73,25],[76,26],[77,27],[80,17],[81,28],[82,17],[85,29],[96,30],[87,29],[88,31],[90,15],[92,32],[93,15],[119,33],[173,34],[174,35],[151,36],[149,36],[150,37],[131,38],[137,39],[130,40],[140,41],[136,34],[166,42],[148,43],[145,44],[147,42],[146,44],[144,45],[143,46],[48,47],[46,47],[47,48],[167,46],[100,49],[156,50],[124,51],[126,52],[157,53],[152,54],[115,55],[128,56],[108,57],[116,58],[53,59],[52,60],[51,61],[104,62],[155,63],[153,64],[127,65],[113,66],[114,67],[106,68],[107,61],[105,69],[112,70],[118,71],[123,72],[121,73],[122,74],[117,75],[158,76],[109,77],[111,78],[110,79]],"exportedModulesMap":[[161,1],[103,2],[164,3],[160,1],[162,4],[163,1],[165,5],[133,6],[134,7],[168,8],[50,9],[98,10],[57,11],[58,12],[59,13],[60,14],[61,15],[62,16],[64,17],[65,17],[66,18],[67,19],[68,20],[69,21],[70,22],[99,23],[71,17],[72,24],[73,25],[76,26],[77,27],[80,17],[81,28],[82,17],[85,29],[96,30],[87,29],[88,31],[90,15],[92,32],[93,15],[119,33],[173,34],[174,35],[151,36],[149,36],[150,37],[131,38],[137,39],[130,40],[140,41],[136,34],[166,42],[148,43],[145,44],[147,42],[146,44],[144,45],[143,46],[48,47],[46,47],[47,48],[167,46],[100,49],[156,50],[124,51],[126,52],[157,53],[152,54],[115,55],[128,56],[108,57],[116,58],[53,59],[52,60],[51,61],[104,62],[155,63],[153,64],[127,65],[113,66],[114,67],[106,68],[107,61],[105,69],[112,70],[118,71],[123,72],[121,73],[122,74],[117,75],[158,76],[109,77],[111,78],[110,79]],"semanticDiagnosticsPerFile":[161,159,102,103,164,160,162,163,49,165,129,133,134,168,169,50,97,55,98,56,57,58,59,60,61,62,63,64,65,66,67,54,94,68,69,70,99,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,96,87,88,89,90,91,95,92,93,170,171,119,172,135,173,174,132,44,125,151,149,150,131,137,130,140,138,139,136,166,148,141,145,147,146,144,143,142,101,48,45,46,47,167,120,100,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,43,41,37,38,39,40,1,42,11,10,156,124,126,157,152,115,128,108,116,53,52,51,154,104,155,153,127,113,114,106,107,105,112,118,123,121,122,117,158,109,111,110]},"version":"4.5.5"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/synthetics",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.23",
|
|
4
4
|
"description": "Elastic synthetic monitoring agent",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"author": "",
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"dependencies": {
|
|
41
|
+
"@cspotcode/source-map-support": "^0.7.0",
|
|
41
42
|
"commander": "^9.0.0",
|
|
42
43
|
"deepmerge": "^4.2.2",
|
|
43
44
|
"expect": "^27.0.2",
|
|
@@ -48,8 +49,7 @@
|
|
|
48
49
|
"sharp": "^0.30.1",
|
|
49
50
|
"snakecase-keys": "^3.2.1",
|
|
50
51
|
"sonic-boom": "^2.6.0",
|
|
51
|
-
"
|
|
52
|
-
"ts-node": "^10.5.0",
|
|
52
|
+
"ts-node": "^10.7.0",
|
|
53
53
|
"typescript": "^4.5.5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
package/src/cli.ts
CHANGED
|
@@ -25,200 +25,126 @@
|
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import { expect } from './core/expect';
|
|
35
|
-
import {
|
|
36
|
-
findPkgJsonByTraversing,
|
|
37
|
-
isDepInstalled,
|
|
38
|
-
isDirectory,
|
|
39
|
-
totalist,
|
|
40
|
-
parseNetworkConditions,
|
|
41
|
-
} from './helpers';
|
|
28
|
+
import { program, Option } from 'commander';
|
|
29
|
+
import { CliArgs } from './common_types';
|
|
30
|
+
import { reporters } from './reporters';
|
|
31
|
+
import { DEFAULT_NETWORK_CONDITIONS_ARG } from './helpers';
|
|
32
|
+
import { normalizeOptions } from './options';
|
|
33
|
+
import { loadTestFiles } from './loader';
|
|
42
34
|
import { run } from './';
|
|
43
|
-
import { readConfig } from './config';
|
|
44
35
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
* Set debug based on DEBUG ENV and -d flags
|
|
48
|
-
* namespace - synthetics
|
|
49
|
-
*/
|
|
50
|
-
const namespace = 'synthetics';
|
|
51
|
-
if (process.env.DEBUG === namespace || Boolean(options.debug)) {
|
|
52
|
-
process.env.DEBUG = '1';
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const loadInlineScript = source => {
|
|
56
|
-
const scriptFn = new Function(
|
|
57
|
-
'step',
|
|
58
|
-
'page',
|
|
59
|
-
'context',
|
|
60
|
-
'browser',
|
|
61
|
-
'params',
|
|
62
|
-
'expect',
|
|
63
|
-
source
|
|
64
|
-
);
|
|
65
|
-
journey('inline', ({ page, context, browser, params }) => {
|
|
66
|
-
scriptFn.apply(null, [step, page, context, browser, params, expect]);
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
async function readStdin() {
|
|
71
|
-
const chunks = [];
|
|
72
|
-
stdin.resume();
|
|
73
|
-
stdin.setEncoding('utf-8');
|
|
74
|
-
for await (const chunk of stdin) {
|
|
75
|
-
chunks.push(chunk);
|
|
76
|
-
}
|
|
77
|
-
return chunks.join();
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function requireSuites(suites: Iterable<string>) {
|
|
81
|
-
for (const suite of suites) {
|
|
82
|
-
require(suite);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Handle both directory and files that are passed through TTY
|
|
88
|
-
* and add them to suites
|
|
89
|
-
*/
|
|
90
|
-
async function prepareSuites(inputs: string[]) {
|
|
91
|
-
const suites = new Set<string>();
|
|
92
|
-
const addSuite = absPath => {
|
|
93
|
-
log(`Processing file: ${absPath}`);
|
|
94
|
-
suites.add(require.resolve(absPath));
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Match all files inside the directory with the
|
|
98
|
-
* .journey.{mjs|cjs|js|ts) extensions
|
|
99
|
-
*/
|
|
100
|
-
const pattern = options.pattern
|
|
101
|
-
? new RegExp(options.pattern, 'i')
|
|
102
|
-
: /.+\.journey\.([mc]js|[jt]s?)$/;
|
|
103
|
-
/**
|
|
104
|
-
* Ignore node_modules by default when running suites
|
|
105
|
-
*/
|
|
106
|
-
const ignored = /node_modules/i;
|
|
36
|
+
/* eslint-disable-next-line @typescript-eslint/no-var-requires */
|
|
37
|
+
const { name, version } = require('../package.json');
|
|
107
38
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
39
|
+
program
|
|
40
|
+
.name(`npx ${name}`)
|
|
41
|
+
.usage('[options] [dir] [files] file')
|
|
42
|
+
.option(
|
|
43
|
+
'-c, --config <path>',
|
|
44
|
+
'configuration path (default: synthetics.config.js)'
|
|
45
|
+
)
|
|
46
|
+
.option(
|
|
47
|
+
'-p, --params <jsonstring>',
|
|
48
|
+
'JSON object that gets injected to all journeys',
|
|
49
|
+
JSON.parse
|
|
50
|
+
)
|
|
51
|
+
.addOption(
|
|
52
|
+
new Option('--reporter <value>', `output repoter format`).choices(
|
|
53
|
+
Object.keys(reporters)
|
|
54
|
+
)
|
|
55
|
+
)
|
|
56
|
+
.option(
|
|
57
|
+
'--pattern <pattern>',
|
|
58
|
+
'RegExp file patterns to search inside directory'
|
|
59
|
+
)
|
|
60
|
+
.option('--inline', 'Run inline journeys from heartbeat')
|
|
61
|
+
.option('-r, --require <modules...>', 'module(s) to preload')
|
|
62
|
+
.option('--no-headless', 'run browser in headful mode')
|
|
63
|
+
.option('--sandbox', 'enable chromium sandboxing', false)
|
|
64
|
+
.option('--rich-events', 'Mimics a heartbeat run')
|
|
65
|
+
.option(
|
|
66
|
+
'--capability <features...>',
|
|
67
|
+
'Enable capabilities through feature flags'
|
|
68
|
+
)
|
|
69
|
+
.addOption(
|
|
70
|
+
new Option('--screenshots [flag]', 'take screenshots at end of each step')
|
|
71
|
+
.choices(['on', 'off', 'only-on-failure'])
|
|
72
|
+
.default('on')
|
|
73
|
+
)
|
|
74
|
+
.option(
|
|
75
|
+
'--dry-run',
|
|
76
|
+
"don't actually execute anything, report only registered journeys"
|
|
77
|
+
)
|
|
78
|
+
.option(
|
|
79
|
+
'--match <name>',
|
|
80
|
+
'run only journeys with a name or tags that matches the glob'
|
|
81
|
+
)
|
|
82
|
+
.option(
|
|
83
|
+
'--tags <name...>',
|
|
84
|
+
'run only journeys with the given tag(s), or globs'
|
|
85
|
+
)
|
|
86
|
+
.option(
|
|
87
|
+
'--outfd <fd>',
|
|
88
|
+
'specify a file descriptor for logs. Default is stdout',
|
|
89
|
+
parseInt
|
|
90
|
+
)
|
|
91
|
+
.option(
|
|
92
|
+
'--ws-endpoint <endpoint>',
|
|
93
|
+
'Browser WebSocket endpoint to connect to'
|
|
94
|
+
)
|
|
95
|
+
.option(
|
|
96
|
+
'--pause-on-error',
|
|
97
|
+
'pause on error until a keypress is made in the console. Useful during development'
|
|
98
|
+
)
|
|
99
|
+
.option(
|
|
100
|
+
'--ignore-https-errors',
|
|
101
|
+
'ignores any HTTPS errors in sites being tested, including ones related to unrecognized certs or signatures. This can be insecure!'
|
|
102
|
+
)
|
|
103
|
+
.option(
|
|
104
|
+
'--quiet-exit-code',
|
|
105
|
+
'always return 0 as an exit code status, regardless of test pass / fail. Only return > 0 exit codes on internal errors where the suite could not be run'
|
|
106
|
+
)
|
|
107
|
+
.option(
|
|
108
|
+
'--throttling <d/u/l>',
|
|
109
|
+
'List of options to throttle network conditions for download throughput (d) in megabits/second, upload throughput (u) in megabits/second and latency (l) in milliseconds.',
|
|
110
|
+
DEFAULT_NETWORK_CONDITIONS_ARG
|
|
111
|
+
)
|
|
112
|
+
.option('--no-throttling', 'Turns off default network throttling.')
|
|
113
|
+
.option(
|
|
114
|
+
'--playwright-options <jsonstring>',
|
|
115
|
+
'JSON object to pass in custom Playwright options for the agent. Options passed will be merged with Playwright options defined in your synthetics.config.js file. Options defined via --playwright-options take precedence.',
|
|
116
|
+
JSON.parse
|
|
117
|
+
)
|
|
118
|
+
.version(version)
|
|
119
|
+
.description('Run synthetic tests')
|
|
120
|
+
.action(async (cliArgs: CliArgs) => {
|
|
121
|
+
try {
|
|
122
|
+
await loadTestFiles(cliArgs, program.args);
|
|
123
|
+
const options = normalizeOptions(cliArgs);
|
|
124
|
+
const results = await run(options);
|
|
125
|
+
/**
|
|
126
|
+
* Exit with error status if any journey fails
|
|
127
|
+
*/
|
|
128
|
+
if (!options.quietExitCode) {
|
|
129
|
+
for (const result of Object.values(results)) {
|
|
130
|
+
if (result.status === 'failed') {
|
|
131
|
+
process.exit(1);
|
|
132
|
+
}
|
|
119
133
|
}
|
|
120
|
-
});
|
|
121
|
-
} else {
|
|
122
|
-
addSuite(absPath);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return suites.values();
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
(async () => {
|
|
129
|
-
/**
|
|
130
|
-
* Transform `.ts` files out of the box by invoking
|
|
131
|
-
* the `ts-node` via `transpile-only` mode that compiles
|
|
132
|
-
* TS files without doing any extensive type checks.
|
|
133
|
-
*
|
|
134
|
-
* We must register `ts-node` _before_ loading inline
|
|
135
|
-
* scripts too because otherwise we will not be able to
|
|
136
|
-
* require `.ts` configuration files.
|
|
137
|
-
*/
|
|
138
|
-
/* eslint-disable-next-line @typescript-eslint/no-var-requires */
|
|
139
|
-
require('ts-node').register({
|
|
140
|
-
transpileOnly: true,
|
|
141
|
-
compilerOptions: {
|
|
142
|
-
esModuleInterop: true,
|
|
143
|
-
allowJs: true,
|
|
144
|
-
target: 'es2018',
|
|
145
|
-
},
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
if (options.inline) {
|
|
149
|
-
const source = await readStdin();
|
|
150
|
-
loadInlineScript(source);
|
|
151
|
-
} else {
|
|
152
|
-
/**
|
|
153
|
-
* Preload modules before running the suites
|
|
154
|
-
*/
|
|
155
|
-
const modules = [].concat(options.require || []).filter(Boolean);
|
|
156
|
-
for (const name of modules) {
|
|
157
|
-
if (isDepInstalled(name)) {
|
|
158
|
-
require(name);
|
|
159
|
-
} else {
|
|
160
|
-
throw new Error(`cannot find module '${name}'`);
|
|
161
134
|
}
|
|
135
|
+
} catch (e) {
|
|
136
|
+
console.error(e);
|
|
137
|
+
process.exit(1);
|
|
162
138
|
}
|
|
163
|
-
|
|
164
|
-
* Handle piped files by reading the STDIN
|
|
165
|
-
* ex: ls example/suites/*.js | npx @elastic/synthetics
|
|
166
|
-
*/
|
|
167
|
-
const files =
|
|
168
|
-
program.args.length > 0
|
|
169
|
-
? program.args
|
|
170
|
-
: (await readStdin()).split('\n').filter(Boolean);
|
|
171
|
-
const suites = await prepareSuites(files);
|
|
172
|
-
requireSuites(suites);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Use the NODE_ENV variable to control the environment
|
|
177
|
-
*/
|
|
178
|
-
const environment = process.env['NODE_ENV'] || 'development';
|
|
179
|
-
/**
|
|
180
|
-
* Validate and handle configs
|
|
181
|
-
*/
|
|
182
|
-
const config =
|
|
183
|
-
options.config || !options.inline
|
|
184
|
-
? readConfig(environment, options.config)
|
|
185
|
-
: {};
|
|
186
|
-
const params = merge(config.params, options.params || {});
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Favor playwright options passed via cli to inline playwright options
|
|
190
|
-
*/
|
|
191
|
-
const playwrightOptions = merge.all([
|
|
192
|
-
config.playwrightOptions || {},
|
|
193
|
-
options.playwrightOptions || {},
|
|
194
|
-
{
|
|
195
|
-
headless: options.headless,
|
|
196
|
-
chromiumSandbox: options.sandbox,
|
|
197
|
-
ignoreHTTPSErrors: options.ignoreHttpsErrors,
|
|
198
|
-
},
|
|
199
|
-
]);
|
|
139
|
+
});
|
|
200
140
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
...options,
|
|
141
|
+
program
|
|
142
|
+
.command('push')
|
|
143
|
+
.description(
|
|
144
|
+
'Push monitors to create new montors with Kibana monitor management UI'
|
|
145
|
+
)
|
|
146
|
+
.action(() => {
|
|
147
|
+
throw new Error('TODO: Implement me');
|
|
209
148
|
});
|
|
210
149
|
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Exit with error status if any journey fails
|
|
214
|
-
*/
|
|
215
|
-
for (const result of Object.values(results)) {
|
|
216
|
-
if (result.status === 'failed') {
|
|
217
|
-
process.exit(1);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
})().catch(e => {
|
|
222
|
-
console.error(e);
|
|
223
|
-
process.exit(1);
|
|
224
|
-
});
|
|
150
|
+
program.parse(process.argv);
|
package/src/common_types.ts
CHANGED
|
@@ -33,16 +33,16 @@ import {
|
|
|
33
33
|
} from 'playwright-chromium';
|
|
34
34
|
import { Protocol } from 'playwright-chromium/types/protocol';
|
|
35
35
|
import { Step } from './dsl';
|
|
36
|
-
import { reporters } from './reporters';
|
|
36
|
+
import { Reporter, reporters } from './reporters';
|
|
37
37
|
|
|
38
38
|
export type VoidCallback = () => void;
|
|
39
|
-
export type
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
uploadThroughput: number;
|
|
44
|
-
latency: number;
|
|
39
|
+
export type Location = {
|
|
40
|
+
file: string;
|
|
41
|
+
line: number;
|
|
42
|
+
column: number;
|
|
45
43
|
};
|
|
44
|
+
|
|
45
|
+
export type Params = Record<string, any>;
|
|
46
46
|
export type HooksArgs = {
|
|
47
47
|
env: string;
|
|
48
48
|
params: Params;
|
|
@@ -51,6 +51,13 @@ export type HooksCallback = (args: HooksArgs) => void;
|
|
|
51
51
|
export type StatusValue = 'succeeded' | 'failed' | 'skipped';
|
|
52
52
|
export type Reporters = keyof typeof reporters;
|
|
53
53
|
|
|
54
|
+
export type NetworkConditions = {
|
|
55
|
+
offline: boolean;
|
|
56
|
+
downloadThroughput: number;
|
|
57
|
+
uploadThroughput: number;
|
|
58
|
+
latency: number;
|
|
59
|
+
};
|
|
60
|
+
|
|
54
61
|
export type Driver = {
|
|
55
62
|
browser: ChromiumBrowser;
|
|
56
63
|
context: ChromiumBrowserContext;
|
|
@@ -186,34 +193,44 @@ export type PluginOutput = {
|
|
|
186
193
|
|
|
187
194
|
export type ScreenshotOptions = 'on' | 'off' | 'only-on-failure';
|
|
188
195
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
config?: string;
|
|
192
|
-
outfd?: number;
|
|
193
|
-
headless?: boolean;
|
|
196
|
+
type BaseArgs = {
|
|
197
|
+
params?: Params;
|
|
194
198
|
screenshots?: ScreenshotOptions;
|
|
195
|
-
ssblocks?: boolean;
|
|
196
|
-
metrics?: boolean;
|
|
197
|
-
filmstrips?: boolean;
|
|
198
|
-
trace?: boolean;
|
|
199
199
|
dryRun?: boolean;
|
|
200
|
-
|
|
200
|
+
match?: string;
|
|
201
|
+
tags?: Array<string>;
|
|
202
|
+
outfd?: number;
|
|
203
|
+
wsEndpoint?: string;
|
|
201
204
|
pauseOnError?: boolean;
|
|
205
|
+
ignoreHttpsErrors?: boolean;
|
|
206
|
+
playwrightOptions?: PlaywrightOptions;
|
|
202
207
|
quietExitCode?: boolean;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export type CliArgs = BaseArgs & {
|
|
211
|
+
config?: string;
|
|
203
212
|
reporter?: Reporters;
|
|
204
|
-
wsEndpoint?: string;
|
|
205
|
-
sandbox?: boolean;
|
|
206
213
|
pattern?: string;
|
|
207
|
-
inline
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
214
|
+
inline?: boolean;
|
|
215
|
+
require?: Array<string>;
|
|
216
|
+
headless?: boolean;
|
|
217
|
+
sandbox?: boolean;
|
|
218
|
+
richEvents?: boolean;
|
|
219
|
+
capability?: Array<string>;
|
|
212
220
|
ignoreHttpsErrors?: boolean;
|
|
213
|
-
params?: Params;
|
|
214
221
|
throttling?: boolean | string;
|
|
215
|
-
|
|
216
|
-
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export type RunOptions = BaseArgs & {
|
|
225
|
+
metrics?: boolean;
|
|
226
|
+
ssblocks?: boolean;
|
|
227
|
+
network?: boolean;
|
|
228
|
+
trace?: boolean;
|
|
229
|
+
filmstrips?: boolean;
|
|
230
|
+
environment?: string;
|
|
231
|
+
playwrightOptions?: PlaywrightOptions;
|
|
232
|
+
networkConditions?: NetworkConditions;
|
|
233
|
+
reporter?: CliArgs['reporter'] | Reporter;
|
|
217
234
|
};
|
|
218
235
|
|
|
219
236
|
export type PlaywrightOptions = LaunchOptions & BrowserContextOptions;
|
package/src/core/gatherer.ts
CHANGED
|
@@ -25,9 +25,8 @@
|
|
|
25
25
|
|
|
26
26
|
import { chromium, ChromiumBrowser, BrowserContext } from 'playwright-chromium';
|
|
27
27
|
import { PluginManager } from '../plugins';
|
|
28
|
-
import { RunOptions } from './runner';
|
|
29
28
|
import { log } from './logger';
|
|
30
|
-
import { Driver } from '../common_types';
|
|
29
|
+
import { Driver, RunOptions } from '../common_types';
|
|
31
30
|
|
|
32
31
|
/**
|
|
33
32
|
* Purpose of the Gatherer is to set up the necessary browser driver
|
package/src/core/index.ts
CHANGED
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
|
|
26
26
|
import { Journey, JourneyCallback, JourneyOptions } from '../dsl';
|
|
27
27
|
import Runner from './runner';
|
|
28
|
-
import { VoidCallback, HooksCallback } from '../common_types';
|
|
28
|
+
import { VoidCallback, HooksCallback, Location } from '../common_types';
|
|
29
|
+
import { wrapFnWithLocation } from '../helpers';
|
|
29
30
|
import { log } from './logger';
|
|
30
31
|
|
|
31
32
|
/**
|
|
@@ -39,23 +40,28 @@ if (!global[SYNTHETICS_RUNNER]) {
|
|
|
39
40
|
|
|
40
41
|
export const runner: Runner = global[SYNTHETICS_RUNNER];
|
|
41
42
|
|
|
42
|
-
export const journey = (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
export const journey = wrapFnWithLocation(
|
|
44
|
+
(
|
|
45
|
+
location: Location,
|
|
46
|
+
options: JourneyOptions | string,
|
|
47
|
+
callback: JourneyCallback
|
|
48
|
+
) => {
|
|
49
|
+
log(`register journey: ${JSON.stringify(options)}`);
|
|
50
|
+
if (typeof options === 'string') {
|
|
51
|
+
options = { name: options, id: options };
|
|
52
|
+
}
|
|
53
|
+
const j = new Journey(options, callback, location);
|
|
54
|
+
runner.addJourney(j);
|
|
55
|
+
return j;
|
|
49
56
|
}
|
|
50
|
-
|
|
51
|
-
runner.addJourney(j);
|
|
52
|
-
return j;
|
|
53
|
-
};
|
|
57
|
+
);
|
|
54
58
|
|
|
55
|
-
export const step = (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
export const step = wrapFnWithLocation(
|
|
60
|
+
(location: Location, name: string, callback: VoidCallback) => {
|
|
61
|
+
log(`register step: ${name}`);
|
|
62
|
+
return runner.currentJourney?.addStep(name, callback, location);
|
|
63
|
+
}
|
|
64
|
+
);
|
|
59
65
|
|
|
60
66
|
export const beforeAll = (callback: HooksCallback) => {
|
|
61
67
|
runner.addHook('beforeAll', callback);
|