@elastic/synthetics 1.0.0-beta.21 → 1.0.0-beta.24
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 +23 -0
- package/dist/cli.js +55 -184
- package/dist/cli.js.map +1 -1
- package/dist/common_types.d.ts +80 -32
- package/dist/common_types.d.ts.map +1 -1
- package/dist/config.js +5 -5
- package/dist/config.js.map +1 -1
- package/dist/core/browser-service.js +5 -5
- package/dist/core/browser-service.js.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 +7 -8
- 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 +9 -11
- package/dist/core/index.js.map +1 -1
- package/dist/core/logger.js +2 -2
- package/dist/core/logger.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 +34 -35
- 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 +6 -5
- 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 +31 -6
- package/dist/formatter/javascript.d.ts.map +1 -1
- package/dist/formatter/javascript.js +45 -24
- 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 +48 -19
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -17
- 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/browser-console.js +2 -2
- package/dist/plugins/browser-console.js.map +1 -1
- package/dist/plugins/network.d.ts +1 -1
- package/dist/plugins/network.d.ts.map +1 -1
- package/dist/plugins/network.js +47 -24
- package/dist/plugins/network.js.map +1 -1
- package/dist/reporters/base.d.ts.map +1 -1
- package/dist/reporters/base.js +14 -11
- package/dist/reporters/base.js.map +1 -1
- package/dist/reporters/json.d.ts +4 -53
- package/dist/reporters/json.d.ts.map +1 -1
- package/dist/reporters/json.js +19 -48
- package/dist/reporters/json.js.map +1 -1
- package/dist/reporters/junit.d.ts.map +1 -1
- package/dist/reporters/junit.js +7 -7
- package/dist/reporters/junit.js.map +1 -1
- package/dist/sdk/lh-trace-processor.js +3 -3
- package/dist/sdk/lh-trace-processor.js.map +1 -1
- package/dist/sdk/trace-metrics.js +3 -4
- package/dist/sdk/trace-metrics.js.map +1 -1
- package/dist/sdk/trace-processor.d.ts.map +1 -1
- package/dist/sdk/trace-processor.js +1 -1
- package/dist/sdk/trace-processor.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -7
- package/src/cli.ts +114 -188
- package/src/common_types.ts +91 -32
- package/src/core/gatherer.ts +2 -3
- 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 +59 -22
- 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/src/plugins/network.ts +49 -25
- package/src/reporters/base.ts +6 -1
- package/src/reporters/json.ts +8 -39
- package/src/reporters/junit.ts +1 -1
- package/src/sdk/trace-processor.ts +1 -1
- 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":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"a8fe23ae87c3e9d2877032cafeb290f2ebe0c51e216d175a0408b10915ebe9f0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","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":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","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","a170c9eb1fbb1f4ce21dcd518ab7212388330d649f1bc2f1b97c1ffca5c09794","6fe0291d3b156ee9c464b016abd80fbb0ed2c9cfc3279016211b1b46553c2c52","2eff693c448b037e854d46382b88c661e211ee7509f805b66760b5d8d3f030a1","88ff747a6ca76a01c53fa7ce6a1a73417bfdc823e81d9ee4493cd4dbdf083399","7a28fb8d98bd89400ee0f3a1a5427a3b87cf66a9412b3f98fc28f617f3c76b36","f28cfe009e074239304847ac8a6c7b09b33f313f48b8b9157665c46e55df0e79","b5181e9421db9ab3461629c094002ce1e69778f363336c6784f196b351f53e33","1d4401a85cd2fc69df8effe2d15d673aad659296fccc1228ea328c5545e6c64a","4d7737bbeb90f349a8366d2f8a5e8b1715e45cb8118120bdd4d4e35f2e77964f","27e1e1353fcfd9101daaecc53e2e8dd59ab55873652aa37c23b6cf83e6951291","b9b79f01f9b7dfa064902cb3c191743587da8c21002d99db401e9a9c732f5900","8edee55e31b8a4536a5da22618125a19fea713e72d2de75b4c482b63941cb24d","d785e62e3b70f7cf73484d165ef1270a7bee9f8f7c7428264302ab75bfbbc4d2","68be16a65e76ebe8b2fdf643f18522cc16260c394d69e23acdbf6c31efd3b6b8","68bf2547c99e4b015a4d2ab72457ad03ee68efc06ce0f5b06aefa0ba6ce1be88","93cb70082da7daa5dad97fb196f7c8685704423b5fd07a061b06c7560ece0a07","3a5c2681698e6cee86ed65ccf0923da578f466048e1e6a26998554926990d379","bad54daa0f4ff93c307ac9f807140e0d812815ec4f98fd0ee75b50dcca96cd49","27f79a576223171f54858f0153c8ad10cff5fb7233676e4fce68e0bb84b6957d","8378795d22bbddbeadb9da90a84d136918597f7052f9ae1f17d26391bd651837","b6f4a5757ca12b95af1d5b0ab2b04049cb0272cf256f0708150a6850b7c28bd1","b66519e16229b704374ea63956a9f46b638d7c109640d4e745c718990cd0d34d","c363874ffb0a11193e50c5a01fb646f80a24210a28c32cffd13039eefdf4b822","7717e1ba82d36aee8d76cb53e218b2ffc78d2177c089775244ddde9118b88c83","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,"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],[34,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.3.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/node_modules/playwright-core/types/protocol.d.ts","../node_modules/playwright-chromium/node_modules/playwright-core/types/structs.d.ts","../node_modules/playwright-chromium/node_modules/playwright-core/types/types.d.ts","../node_modules/playwright-chromium/index.d.ts","../node_modules/playwright-core/types/protocol.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","6190fc794153dec7b344b11a361077413cc09627415416fef1375569f4028736","3f4eca17bf5cb95dd385a861ff52eaa6f69c9d35d4d410d3781c3c8bb1b711e1","026b4436ecf3884b9032fde46614f4ffb2513805177283c5cb592b6048e6cc9e","b07f64ff6ec710998a62b07377fbda0ab4c313ba1f0055bfe9faa22cffedd47c","6190fc794153dec7b344b11a361077413cc09627415416fef1375569f4028736","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","4f6da5e6124a57ed9f46ffbdd1adff8172471df7e754dc7d3986d13518679a0c","6fe0291d3b156ee9c464b016abd80fbb0ed2c9cfc3279016211b1b46553c2c52","2eff693c448b037e854d46382b88c661e211ee7509f805b66760b5d8d3f030a1","88ff747a6ca76a01c53fa7ce6a1a73417bfdc823e81d9ee4493cd4dbdf083399","de98b87f10311ac7a68365a371df9e54d646576e67466f09387e2497ddcb22b1","f28cfe009e074239304847ac8a6c7b09b33f313f48b8b9157665c46e55df0e79","b5181e9421db9ab3461629c094002ce1e69778f363336c6784f196b351f53e33","1d4401a85cd2fc69df8effe2d15d673aad659296fccc1228ea328c5545e6c64a","4d7737bbeb90f349a8366d2f8a5e8b1715e45cb8118120bdd4d4e35f2e77964f","7b6749df50f7e3a3dbe6fe898a01ccd934cceb3de112c2794018398e54f41493","0b5b4afe792d48b725bd11f89d89e69bbaacb9ce68512580747887bec609600b","8edee55e31b8a4536a5da22618125a19fea713e72d2de75b4c482b63941cb24d","a3ba6a4c7903084e40c816454a64aa16f154e8ff3eea60d963817453582437ac","68be16a65e76ebe8b2fdf643f18522cc16260c394d69e23acdbf6c31efd3b6b8","68bf2547c99e4b015a4d2ab72457ad03ee68efc06ce0f5b06aefa0ba6ce1be88","52a1e1b7fa25dfc12bc00aa0aa2fd2333c55f891a56b4631ba9d35d55c73815d","9bcaf2ed64bf2c06d2884191bde3397ebf4b15a8d98700e23f8d8d9daa8c04b7","bad54daa0f4ff93c307ac9f807140e0d812815ec4f98fd0ee75b50dcca96cd49","14da3ae89b0ed7e2cd27c36f5f37437fb6caf87e57fa5711a7119dc25ae94208","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","020163a9eed23106914c4b1dc0b39fe4f5008295afe8a860b089f828310b6017","f4fea28a46298f39788f936edac3e0310e6bf7d2dae1c20e94c97493703fcc7d","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":[[160],[103],[160,161,162,163,164],[160,162],[67,100],[130],[134],[144,148],[50],[97,98],[66,67,74,83],[58,66,74],[90],[62,67,75],[83],[64,66,74],[66],[66,68,83,89],[67],[74,83,89],[66,67,69,74,83,86,89],[69,86,89],[99],[89],[64,66,83],[56],[88],[81,90,92],[74],[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,96],[80],[66,68,83,89,92],[83,100],[136],[66,83,100],[151],[141,149,150],[100,131],[100,133,135,137],[100,130],[131,132,138,139,140],[142,145,146,147],[133,148],[142,145],[144],[143],[47],[45,46,58,66,67,83],[66,100],[44,105,124,125,128,154,156],[45,48,54,124],[76,105,125],[48,69,89,109],[151,152],[48,109,115,125],[54,105,109,117,125],[102,105],[52,53,66,68,76,105,109,115,116,124,125],[52,53],[48,51,52,125],[125],[67,75,76,77,90,102,104,125],[48,117,124,125,129,153,155],[76,78,105,109,125,129,153],[105,125,126,127],[54,105,125],[106,107,108,113,114],[45,54,105,125],[54,115,125],[111,112,125],[101,102,105,117,118],[118,119,122,123],[54,62,67,76,105,115,119,120,121,125],[67,76,105,119],[117],[158],[109],[111,125],[109,110,112,125]],"referencedMap":[[162,1],[104,2],[165,3],[161,1],[163,4],[164,1],[166,5],[134,6],[135,7],[169,8],[51,9],[99,10],[58,11],[59,12],[60,13],[61,14],[62,15],[63,16],[65,17],[66,17],[67,18],[68,19],[69,20],[70,21],[71,22],[100,23],[72,17],[73,24],[74,25],[77,26],[78,27],[81,17],[82,28],[83,17],[86,29],[97,30],[88,29],[89,31],[91,15],[93,32],[94,15],[120,33],[174,34],[175,35],[152,36],[150,36],[151,37],[132,38],[138,39],[131,40],[141,41],[137,34],[167,42],[149,43],[146,44],[148,42],[147,44],[145,45],[144,46],[48,47],[46,47],[47,48],[168,46],[101,49],[157,50],[125,51],[127,52],[158,53],[153,54],[116,55],[129,56],[109,57],[117,58],[54,59],[53,60],[52,61],[105,62],[156,63],[154,64],[128,65],[114,66],[115,67],[107,68],[108,61],[106,69],[113,70],[119,71],[124,72],[122,73],[123,74],[118,75],[159,76],[110,77],[112,78],[111,79]],"exportedModulesMap":[[162,1],[104,2],[165,3],[161,1],[163,4],[164,1],[166,5],[134,6],[135,7],[169,8],[51,9],[99,10],[58,11],[59,12],[60,13],[61,14],[62,15],[63,16],[65,17],[66,17],[67,18],[68,19],[69,20],[70,21],[71,22],[100,23],[72,17],[73,24],[74,25],[77,26],[78,27],[81,17],[82,28],[83,17],[86,29],[97,30],[88,29],[89,31],[91,15],[93,32],[94,15],[120,33],[174,34],[175,35],[152,36],[150,36],[151,37],[132,38],[138,39],[131,40],[141,41],[137,34],[167,42],[149,43],[146,44],[148,42],[147,44],[145,45],[144,46],[48,47],[46,47],[47,48],[168,46],[101,49],[157,50],[125,51],[127,52],[158,53],[153,54],[116,55],[129,56],[109,57],[117,58],[54,59],[53,60],[52,61],[105,62],[156,63],[154,64],[128,65],[114,66],[115,67],[107,68],[108,61],[106,69],[113,70],[119,71],[124,72],[122,73],[123,74],[118,75],[159,76],[110,77],[112,78],[111,79]],"semanticDiagnosticsPerFile":[162,160,103,104,165,161,163,164,50,166,130,134,135,169,170,51,98,56,99,57,58,59,60,61,62,63,64,65,66,67,68,55,95,69,70,71,100,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,97,88,89,90,91,92,96,93,94,171,172,120,173,136,174,175,133,44,126,152,150,151,132,138,131,139,140,141,137,167,149,142,146,148,147,145,144,143,102,48,45,46,47,49,168,121,101,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,157,125,127,158,153,116,129,109,117,54,53,52,155,105,156,154,128,114,115,107,108,106,113,119,124,122,123,118,159,110,112,111]},"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.24",
|
|
4
4
|
"description": "Elastic synthetic monitoring agent",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -38,19 +38,20 @@
|
|
|
38
38
|
"author": "",
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"
|
|
41
|
+
"@cspotcode/source-map-support": "^0.7.0",
|
|
42
|
+
"commander": "^9.0.0",
|
|
42
43
|
"deepmerge": "^4.2.2",
|
|
43
44
|
"expect": "^27.0.2",
|
|
44
45
|
"http-proxy": "^1.18.1",
|
|
45
|
-
"kleur": "^4.1.
|
|
46
|
+
"kleur": "^4.1.4",
|
|
46
47
|
"micromatch": "^4.0.4",
|
|
47
|
-
"playwright-chromium": "
|
|
48
|
+
"playwright-chromium": "^1.20.1",
|
|
49
|
+
"playwright-core": "^1.20.1",
|
|
48
50
|
"sharp": "^0.30.1",
|
|
49
51
|
"snakecase-keys": "^3.2.1",
|
|
50
52
|
"sonic-boom": "^2.6.0",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"typescript": "^4.3.5"
|
|
53
|
+
"ts-node": "^10.7.0",
|
|
54
|
+
"typescript": "^4.5.5"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"@types/jest": "^27.4.0",
|
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
|
@@ -31,18 +31,18 @@ import {
|
|
|
31
31
|
ChromiumBrowserContext,
|
|
32
32
|
Page,
|
|
33
33
|
} from 'playwright-chromium';
|
|
34
|
-
import { Protocol } from 'playwright-
|
|
34
|
+
import { Protocol } from 'playwright-core/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;
|
|
@@ -100,18 +107,60 @@ export type Screenshot = {
|
|
|
100
107
|
data: string;
|
|
101
108
|
};
|
|
102
109
|
|
|
110
|
+
export type SecurityDetails = {
|
|
111
|
+
issuer?: string;
|
|
112
|
+
protocol?: string;
|
|
113
|
+
subjectName?: string;
|
|
114
|
+
validFrom?: number;
|
|
115
|
+
validTo?: number;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export type Request = {
|
|
119
|
+
method: string;
|
|
120
|
+
url: string;
|
|
121
|
+
headers: Record<string, string>;
|
|
122
|
+
// Total size in bytes of the request (body and headers)
|
|
123
|
+
bytes?: number;
|
|
124
|
+
body?: {
|
|
125
|
+
// Size in bytes of the request body
|
|
126
|
+
bytes: number;
|
|
127
|
+
};
|
|
128
|
+
referrer?: string;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export type Response = {
|
|
132
|
+
url?: string;
|
|
133
|
+
protocol?: string;
|
|
134
|
+
status: number;
|
|
135
|
+
statusText?: string;
|
|
136
|
+
mimeType: string;
|
|
137
|
+
httpVersion?: string;
|
|
138
|
+
headers: Record<string, string>;
|
|
139
|
+
// Total size in bytes of the response (body and headers)
|
|
140
|
+
bytes?: number;
|
|
141
|
+
body?: {
|
|
142
|
+
// Size in bytes of the response body
|
|
143
|
+
bytes: number;
|
|
144
|
+
};
|
|
145
|
+
transferSize?: number;
|
|
146
|
+
redirectURL?: string;
|
|
147
|
+
securityDetails?: SecurityDetails;
|
|
148
|
+
remoteIPAddress?: string;
|
|
149
|
+
remotePort?: number;
|
|
150
|
+
fromServiceWorker?: boolean;
|
|
151
|
+
timing?: Protocol.Network.ResourceTiming;
|
|
152
|
+
};
|
|
153
|
+
|
|
103
154
|
export type NetworkInfo = {
|
|
104
155
|
url: string;
|
|
105
156
|
browser: BrowserInfo;
|
|
106
|
-
method: string;
|
|
107
157
|
type: string;
|
|
108
|
-
request:
|
|
109
|
-
response?:
|
|
158
|
+
request: Request;
|
|
159
|
+
response?: Response;
|
|
110
160
|
isNavigationRequest: boolean;
|
|
111
161
|
requestSentTime: number;
|
|
112
162
|
loadEndTime: number;
|
|
113
163
|
responseReceivedTime: number;
|
|
114
|
-
status: number;
|
|
115
164
|
resourceSize: number;
|
|
116
165
|
transferSize: number;
|
|
117
166
|
timings?: {
|
|
@@ -144,34 +193,44 @@ export type PluginOutput = {
|
|
|
144
193
|
|
|
145
194
|
export type ScreenshotOptions = 'on' | 'off' | 'only-on-failure';
|
|
146
195
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
config?: string;
|
|
150
|
-
outfd?: number;
|
|
151
|
-
headless?: boolean;
|
|
196
|
+
type BaseArgs = {
|
|
197
|
+
params?: Params;
|
|
152
198
|
screenshots?: ScreenshotOptions;
|
|
153
|
-
ssblocks?: boolean;
|
|
154
|
-
metrics?: boolean;
|
|
155
|
-
filmstrips?: boolean;
|
|
156
|
-
trace?: boolean;
|
|
157
199
|
dryRun?: boolean;
|
|
158
|
-
|
|
200
|
+
match?: string;
|
|
201
|
+
tags?: Array<string>;
|
|
202
|
+
outfd?: number;
|
|
203
|
+
wsEndpoint?: string;
|
|
159
204
|
pauseOnError?: boolean;
|
|
205
|
+
ignoreHttpsErrors?: boolean;
|
|
206
|
+
playwrightOptions?: PlaywrightOptions;
|
|
160
207
|
quietExitCode?: boolean;
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export type CliArgs = BaseArgs & {
|
|
211
|
+
config?: string;
|
|
161
212
|
reporter?: Reporters;
|
|
162
|
-
wsEndpoint?: string;
|
|
163
|
-
sandbox?: boolean;
|
|
164
213
|
pattern?: string;
|
|
165
|
-
inline
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
214
|
+
inline?: boolean;
|
|
215
|
+
require?: Array<string>;
|
|
216
|
+
headless?: boolean;
|
|
217
|
+
sandbox?: boolean;
|
|
218
|
+
richEvents?: boolean;
|
|
219
|
+
capability?: Array<string>;
|
|
170
220
|
ignoreHttpsErrors?: boolean;
|
|
171
|
-
params?: Params;
|
|
172
221
|
throttling?: boolean | string;
|
|
173
|
-
|
|
174
|
-
|
|
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;
|
|
175
234
|
};
|
|
176
235
|
|
|
177
236
|
export type PlaywrightOptions = LaunchOptions & BrowserContextOptions;
|