@elench/testkit 0.1.64 → 0.1.66
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/lib/app/browser-bridge.mjs +66 -0
- package/lib/app/configs.mjs +81 -0
- package/lib/app/configs.test.mjs +34 -0
- package/lib/cli/command-helpers.mjs +2 -10
- package/lib/cli/commands/browser/serve.mjs +3 -62
- package/lib/cli/db.mjs +3 -68
- package/lib/config/binaries.mjs +34 -0
- package/lib/config/database.mjs +9 -6
- package/lib/config/index.mjs +2 -31
- package/lib/config/runtime.mjs +24 -95
- package/lib/config/validation.mjs +18 -62
- package/lib/coverage/backend-discovery.mjs +68 -85
- package/lib/coverage/backend-discovery.test.mjs +55 -46
- package/lib/coverage/evidence.mjs +15 -3
- package/lib/coverage/evidence.test.mjs +13 -4
- package/lib/coverage/graph-builder.mjs +25 -26
- package/lib/coverage/next-ir-to-graph.mjs +239 -0
- package/lib/coverage/routing.mjs +2 -29
- package/lib/coverage/routing.test.mjs +0 -16
- package/lib/coverage/shared.mjs +22 -82
- package/lib/database/fingerprint.mjs +1 -1
- package/lib/known-failures/github-cache.mjs +159 -0
- package/lib/known-failures/github-transport.mjs +174 -0
- package/lib/known-failures/github.mjs +17 -325
- package/lib/runner/default-runtime-runner.mjs +4 -10
- package/lib/runner/execution-config.mjs +12 -83
- package/lib/runner/live-run.mjs +45 -0
- package/lib/runner/managed-processes.mjs +29 -0
- package/lib/runner/orchestrator.mjs +57 -188
- package/lib/runner/playwright-runner.mjs +4 -11
- package/lib/runner/run-finalization.mjs +132 -0
- package/lib/runner/run-guards.mjs +45 -0
- package/lib/runner/runtime-preparation.mjs +1 -1
- package/lib/runner/services.mjs +3 -4
- package/lib/runner/template-steps.mjs +8 -45
- package/lib/runner/template.mjs +7 -28
- package/lib/shared/configured-steps.mjs +178 -0
- package/lib/shared/configured-steps.test.mjs +73 -0
- package/lib/shared/execution-schema.mjs +74 -0
- package/lib/shared/execution-schema.test.mjs +26 -0
- package/node_modules/@elench/next-analysis/dist/api-routes.d.ts +7 -0
- package/node_modules/@elench/next-analysis/dist/api-routes.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/api-routes.js +66 -0
- package/node_modules/@elench/next-analysis/dist/api-routes.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/app-root.d.ts +2 -0
- package/node_modules/@elench/next-analysis/dist/app-root.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/app-root.js +7 -0
- package/node_modules/@elench/next-analysis/dist/app-root.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/backend-links.d.ts +8 -0
- package/node_modules/@elench/next-analysis/dist/backend-links.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/backend-links.js +30 -0
- package/node_modules/@elench/next-analysis/dist/backend-links.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/index.d.ts +11 -0
- package/node_modules/@elench/next-analysis/dist/index.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/index.js +10 -0
- package/node_modules/@elench/next-analysis/dist/index.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/pages.d.ts +7 -0
- package/node_modules/@elench/next-analysis/dist/pages.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/pages.js +47 -0
- package/node_modules/@elench/next-analysis/dist/pages.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/project.d.ts +3 -0
- package/node_modules/@elench/next-analysis/dist/project.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/project.js +102 -0
- package/node_modules/@elench/next-analysis/dist/project.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/route-tree.d.ts +7 -0
- package/node_modules/@elench/next-analysis/dist/route-tree.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/route-tree.js +575 -0
- package/node_modules/@elench/next-analysis/dist/route-tree.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/routes.d.ts +6 -0
- package/node_modules/@elench/next-analysis/dist/routes.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/routes.js +41 -0
- package/node_modules/@elench/next-analysis/dist/routes.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/server-actions.d.ts +7 -0
- package/node_modules/@elench/next-analysis/dist/server-actions.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/server-actions.js +37 -0
- package/node_modules/@elench/next-analysis/dist/server-actions.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/shared.d.ts +57 -0
- package/node_modules/@elench/next-analysis/dist/shared.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/shared.js +229 -0
- package/node_modules/@elench/next-analysis/dist/shared.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/swc.d.ts +53 -0
- package/node_modules/@elench/next-analysis/dist/swc.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/swc.js +387 -0
- package/node_modules/@elench/next-analysis/dist/swc.js.map +1 -0
- package/node_modules/@elench/next-analysis/dist/types.d.ts +125 -0
- package/node_modules/@elench/next-analysis/dist/types.d.ts.map +1 -0
- package/node_modules/@elench/next-analysis/dist/types.js +2 -0
- package/node_modules/@elench/next-analysis/dist/types.js.map +1 -0
- package/node_modules/@elench/next-analysis/package.json +27 -0
- package/node_modules/@elench/testkit-bridge/dist/index.d.ts +36 -0
- package/node_modules/@elench/testkit-bridge/dist/index.d.ts.map +1 -0
- package/node_modules/@elench/testkit-bridge/dist/index.js +538 -0
- package/node_modules/@elench/testkit-bridge/dist/index.js.map +1 -0
- package/node_modules/@elench/testkit-bridge/package.json +16 -5
- package/node_modules/@elench/testkit-protocol/dist/index.d.ts +190 -0
- package/node_modules/@elench/testkit-protocol/dist/index.d.ts.map +1 -0
- package/node_modules/@elench/testkit-protocol/dist/index.js +296 -0
- package/node_modules/@elench/testkit-protocol/dist/index.js.map +1 -0
- package/node_modules/@elench/testkit-protocol/package.json +14 -7
- package/node_modules/@elench/ts-analysis/dist/callables.d.ts +8 -0
- package/node_modules/@elench/ts-analysis/dist/callables.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/callables.js +126 -0
- package/node_modules/@elench/ts-analysis/dist/callables.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/exports.d.ts +6 -0
- package/node_modules/@elench/ts-analysis/dist/exports.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/exports.js +70 -0
- package/node_modules/@elench/ts-analysis/dist/exports.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/index.d.ts +10 -0
- package/node_modules/@elench/ts-analysis/dist/index.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/{src/index.mjs → dist/index.js} +9 -14
- package/node_modules/@elench/ts-analysis/dist/index.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/jsx.d.ts +9 -0
- package/node_modules/@elench/ts-analysis/dist/jsx.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/jsx.js +68 -0
- package/node_modules/@elench/ts-analysis/dist/jsx.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/project.d.ts +5 -0
- package/node_modules/@elench/ts-analysis/dist/project.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/project.js +90 -0
- package/node_modules/@elench/ts-analysis/dist/project.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/requests.d.ts +6 -0
- package/node_modules/@elench/ts-analysis/dist/requests.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/requests.js +140 -0
- package/node_modules/@elench/ts-analysis/dist/requests.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/resolution.d.ts +4 -0
- package/node_modules/@elench/ts-analysis/dist/resolution.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/resolution.js +53 -0
- package/node_modules/@elench/ts-analysis/dist/resolution.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/shared.d.ts +6 -0
- package/node_modules/@elench/ts-analysis/dist/shared.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/shared.js +31 -0
- package/node_modules/@elench/ts-analysis/dist/shared.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/syntax.d.ts +7 -0
- package/node_modules/@elench/ts-analysis/dist/syntax.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/syntax.js +27 -0
- package/node_modules/@elench/ts-analysis/dist/syntax.js.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/types.d.ts +58 -0
- package/node_modules/@elench/ts-analysis/dist/types.d.ts.map +1 -0
- package/node_modules/@elench/ts-analysis/dist/types.js +2 -0
- package/node_modules/@elench/ts-analysis/dist/types.js.map +1 -0
- package/node_modules/@elench/ts-analysis/package.json +18 -2
- package/node_modules/@next/routing/README.md +91 -0
- package/node_modules/@next/routing/dist/__tests__/captures.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/conditions.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/dynamic-after-rewrites.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/i18n-resolve-routes.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/i18n.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/middleware.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/normalize-next-data.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/redirects.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/resolve-routes.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/__tests__/rewrites.test.d.ts +1 -0
- package/node_modules/@next/routing/dist/destination.d.ts +22 -0
- package/node_modules/@next/routing/dist/i18n.d.ts +48 -0
- package/node_modules/@next/routing/dist/index.d.ts +5 -0
- package/node_modules/@next/routing/dist/index.js +1 -0
- package/node_modules/@next/routing/dist/matchers.d.ts +12 -0
- package/node_modules/@next/routing/dist/middleware.d.ts +12 -0
- package/node_modules/@next/routing/dist/next-data.d.ts +10 -0
- package/node_modules/@next/routing/dist/resolve-routes.d.ts +2 -0
- package/node_modules/@next/routing/dist/types.d.ts +97 -0
- package/node_modules/@next/routing/package.json +39 -0
- package/node_modules/@swc/core/README.md +100 -0
- package/node_modules/@swc/core/Visitor.d.ts +218 -0
- package/node_modules/@swc/core/Visitor.js +1399 -0
- package/node_modules/@swc/core/binding.d.ts +59 -0
- package/node_modules/@swc/core/binding.js +368 -0
- package/node_modules/@swc/core/index.d.ts +120 -0
- package/node_modules/@swc/core/index.js +443 -0
- package/node_modules/@swc/core/package.json +120 -0
- package/node_modules/@swc/core/postinstall.js +148 -0
- package/node_modules/@swc/core/spack.d.ts +51 -0
- package/node_modules/@swc/core/spack.js +87 -0
- package/node_modules/@swc/core/util.d.ts +1 -0
- package/node_modules/@swc/core/util.js +104 -0
- package/node_modules/@swc/core-linux-x64-gnu/README.md +3 -0
- package/node_modules/@swc/core-linux-x64-gnu/package.json +46 -0
- package/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node +0 -0
- package/node_modules/@swc/counter/CHANGELOG.md +7 -0
- package/node_modules/@swc/counter/README.md +7 -0
- package/node_modules/@swc/counter/index.js +1 -0
- package/node_modules/@swc/counter/package.json +27 -0
- package/node_modules/@swc/types/LICENSE +201 -0
- package/node_modules/@swc/types/README.md +4 -0
- package/node_modules/@swc/types/assumptions.d.ts +92 -0
- package/node_modules/@swc/types/assumptions.js +2 -0
- package/node_modules/@swc/types/index.d.ts +2049 -0
- package/node_modules/@swc/types/index.js +2 -0
- package/node_modules/@swc/types/package.json +40 -0
- package/node_modules/typescript/LICENSE.txt +55 -0
- package/node_modules/typescript/README.md +50 -0
- package/node_modules/typescript/SECURITY.md +41 -0
- package/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- package/node_modules/typescript/bin/tsc +2 -0
- package/node_modules/typescript/bin/tsserver +2 -0
- package/node_modules/typescript/lib/_tsc.js +133818 -0
- package/node_modules/typescript/lib/_tsserver.js +659 -0
- package/node_modules/typescript/lib/_typingsInstaller.js +222 -0
- package/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/lib.d.ts +22 -0
- package/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
- package/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
- package/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
- package/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
- package/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
- package/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
- package/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
- package/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
- package/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
- package/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
- package/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
- package/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
- package/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
- package/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
- package/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
- package/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
- package/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
- package/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
- package/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
- package/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
- package/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
- package/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
- package/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
- package/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
- package/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
- package/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
- package/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
- package/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
- package/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
- package/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
- package/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
- package/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
- package/node_modules/typescript/lib/lib.es6.d.ts +23 -0
- package/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
- package/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
- package/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
- package/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
- package/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
- package/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
- package/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
- package/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
- package/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
- package/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- package/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
- package/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
- package/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
- package/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
- package/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
- package/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/tsc.js +8 -0
- package/node_modules/typescript/lib/tsserver.js +8 -0
- package/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
- package/node_modules/typescript/lib/tsserverlibrary.js +21 -0
- package/node_modules/typescript/lib/typesMap.json +497 -0
- package/node_modules/typescript/lib/typescript.d.ts +11437 -0
- package/node_modules/typescript/lib/typescript.js +200276 -0
- package/node_modules/typescript/lib/typingsInstaller.js +8 -0
- package/node_modules/typescript/lib/watchGuard.js +53 -0
- package/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
- package/node_modules/typescript/package.json +120 -0
- package/package.json +13 -8
- package/lib/coverage/fs-walk.mjs +0 -64
- package/lib/coverage/next-discovery.mjs +0 -205
- package/lib/coverage/next-static-analysis.mjs +0 -1045
- package/node_modules/@elench/testkit-bridge/src/index.mjs +0 -583
- package/node_modules/@elench/testkit-bridge/src/index.test.mjs +0 -409
- package/node_modules/@elench/testkit-protocol/src/index.d.ts +0 -231
- package/node_modules/@elench/testkit-protocol/src/index.mjs +0 -265
- package/node_modules/@elench/testkit-protocol/src/index.test.mjs +0 -242
- package/node_modules/@elench/ts-analysis/src/callables.mjs +0 -135
- package/node_modules/@elench/ts-analysis/src/callables.test.mjs +0 -55
- package/node_modules/@elench/ts-analysis/src/exports.mjs +0 -69
- package/node_modules/@elench/ts-analysis/src/exports.test.mjs +0 -50
- package/node_modules/@elench/ts-analysis/src/jsx.mjs +0 -69
- package/node_modules/@elench/ts-analysis/src/jsx.test.mjs +0 -43
- package/node_modules/@elench/ts-analysis/src/project.mjs +0 -100
- package/node_modules/@elench/ts-analysis/src/project.test.mjs +0 -54
- package/node_modules/@elench/ts-analysis/src/requests.mjs +0 -141
- package/node_modules/@elench/ts-analysis/src/requests.test.mjs +0 -35
- package/node_modules/@elench/ts-analysis/src/resolution.mjs +0 -53
- package/node_modules/@elench/ts-analysis/src/shared.mjs +0 -32
- package/node_modules/@elench/ts-analysis/src/syntax.mjs +0 -27
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from "vitest";
|
|
2
|
-
import { buildMatchResponse, buildPageOverlayResponse } from "./index.mjs";
|
|
3
|
-
|
|
4
|
-
const context = {
|
|
5
|
-
product: {
|
|
6
|
-
name: "web",
|
|
7
|
-
directory: "/tmp/web",
|
|
8
|
-
},
|
|
9
|
-
services: [
|
|
10
|
-
{
|
|
11
|
-
name: "web",
|
|
12
|
-
baseUrl: "http://localhost:3000",
|
|
13
|
-
origin: "http://localhost:3000",
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
discovery: {
|
|
17
|
-
files: [
|
|
18
|
-
{
|
|
19
|
-
path: "app/coverage/__testkit__/coverage.pw.testkit.ts",
|
|
20
|
-
displayName: "Coverage",
|
|
21
|
-
service: "web",
|
|
22
|
-
suiteName: "coverage",
|
|
23
|
-
selectionType: "pw",
|
|
24
|
-
framework: "playwright",
|
|
25
|
-
skipped: false,
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
path: "app/api/coverage/__testkit__/coverage.int.testkit.ts",
|
|
29
|
-
displayName: "Coverage API",
|
|
30
|
-
service: "web",
|
|
31
|
-
suiteName: "coverage",
|
|
32
|
-
selectionType: "int",
|
|
33
|
-
framework: "k6",
|
|
34
|
-
skipped: false,
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
coverageGraph: {
|
|
38
|
-
schemaVersion: 1,
|
|
39
|
-
nodes: [
|
|
40
|
-
{
|
|
41
|
-
id: "page_view:web:/coverage",
|
|
42
|
-
kind: "page_view",
|
|
43
|
-
service: "web",
|
|
44
|
-
label: "Coverage",
|
|
45
|
-
route: "/coverage",
|
|
46
|
-
filePath: "app/coverage/page.tsx",
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
id: "ui_surface:web:/coverage:coverage-refresh-button",
|
|
50
|
-
kind: "ui_surface",
|
|
51
|
-
service: "web",
|
|
52
|
-
label: "Refresh overlay",
|
|
53
|
-
route: "/coverage",
|
|
54
|
-
filePath: "app/coverage/page.tsx",
|
|
55
|
-
target: {
|
|
56
|
-
kind: "testId",
|
|
57
|
-
value: "coverage-refresh-button",
|
|
58
|
-
confidence: "high",
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
id: "api_route:web:GET:/api/coverage",
|
|
63
|
-
kind: "api_route",
|
|
64
|
-
service: "web",
|
|
65
|
-
label: "GET /api/coverage",
|
|
66
|
-
route: "/coverage",
|
|
67
|
-
method: "GET",
|
|
68
|
-
path: "/api/coverage",
|
|
69
|
-
filePath: "app/api/coverage/route.ts",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
id: "test_file:web:app/coverage/__testkit__/coverage.pw.testkit.ts",
|
|
73
|
-
kind: "test_file",
|
|
74
|
-
service: "web",
|
|
75
|
-
label: "coverage.pw.testkit.ts",
|
|
76
|
-
filePath: "app/coverage/__testkit__/coverage.pw.testkit.ts",
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: "test_file:web:app/api/coverage/__testkit__/coverage.int.testkit.ts",
|
|
80
|
-
kind: "test_file",
|
|
81
|
-
service: "web",
|
|
82
|
-
label: "coverage.int.testkit.ts",
|
|
83
|
-
filePath: "app/api/coverage/__testkit__/coverage.int.testkit.ts",
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
edges: [
|
|
87
|
-
{
|
|
88
|
-
id: "contains:page_view:web:/coverage:ui_surface:web:/coverage:coverage-refresh-button",
|
|
89
|
-
kind: "contains",
|
|
90
|
-
from: "page_view:web:/coverage",
|
|
91
|
-
to: "ui_surface:web:/coverage:coverage-refresh-button",
|
|
92
|
-
confidence: "high",
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
id: "requests:ui_surface:web:/coverage:coverage-refresh-button:api_route:web:GET:/api/coverage",
|
|
96
|
-
kind: "requests",
|
|
97
|
-
from: "ui_surface:web:/coverage:coverage-refresh-button",
|
|
98
|
-
to: "api_route:web:GET:/api/coverage",
|
|
99
|
-
confidence: "high",
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
evidence: [
|
|
103
|
-
{
|
|
104
|
-
id: "evidence:web:app/coverage/__testkit__/coverage.pw.testkit.ts",
|
|
105
|
-
source: "convention",
|
|
106
|
-
confidence: "high",
|
|
107
|
-
service: "web",
|
|
108
|
-
suiteName: "coverage",
|
|
109
|
-
selectionType: "pw",
|
|
110
|
-
framework: "playwright",
|
|
111
|
-
testFilePath: "app/coverage/__testkit__/coverage.pw.testkit.ts",
|
|
112
|
-
coveredNodeIds: [
|
|
113
|
-
"page_view:web:/coverage",
|
|
114
|
-
"ui_surface:web:/coverage:coverage-refresh-button",
|
|
115
|
-
],
|
|
116
|
-
details: {
|
|
117
|
-
route: "/coverage",
|
|
118
|
-
targets: [{ kind: "testId", value: "coverage-refresh-button", confidence: "high" }],
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
id: "evidence:web:app/api/coverage/__testkit__/coverage.int.testkit.ts",
|
|
123
|
-
source: "convention",
|
|
124
|
-
confidence: "high",
|
|
125
|
-
service: "web",
|
|
126
|
-
suiteName: "coverage",
|
|
127
|
-
selectionType: "int",
|
|
128
|
-
framework: "k6",
|
|
129
|
-
testFilePath: "app/api/coverage/__testkit__/coverage.int.testkit.ts",
|
|
130
|
-
coveredNodeIds: ["api_route:web:GET:/api/coverage"],
|
|
131
|
-
details: { requestPaths: ["/api/coverage"] },
|
|
132
|
-
},
|
|
133
|
-
],
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
runArtifact: {
|
|
137
|
-
generatedAt: "2026-01-01T00:00:00.000Z",
|
|
138
|
-
run: {
|
|
139
|
-
status: "failed",
|
|
140
|
-
},
|
|
141
|
-
services: [
|
|
142
|
-
{
|
|
143
|
-
name: "web",
|
|
144
|
-
suites: [
|
|
145
|
-
{
|
|
146
|
-
name: "coverage",
|
|
147
|
-
type: "pw",
|
|
148
|
-
framework: "playwright",
|
|
149
|
-
files: [
|
|
150
|
-
{
|
|
151
|
-
path: "app/coverage/__testkit__/coverage.pw.testkit.ts",
|
|
152
|
-
status: "failed",
|
|
153
|
-
error: "Expected coverage heading",
|
|
154
|
-
failureDetails: [],
|
|
155
|
-
},
|
|
156
|
-
],
|
|
157
|
-
},
|
|
158
|
-
],
|
|
159
|
-
},
|
|
160
|
-
],
|
|
161
|
-
},
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
const routeLevelContext = {
|
|
165
|
-
product: {
|
|
166
|
-
name: "dashboard",
|
|
167
|
-
directory: "/tmp/dashboard",
|
|
168
|
-
},
|
|
169
|
-
services: [
|
|
170
|
-
{
|
|
171
|
-
name: "dashboard",
|
|
172
|
-
baseUrl: "http://localhost:3000",
|
|
173
|
-
origin: "http://localhost:3000",
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
discovery: {
|
|
177
|
-
files: [
|
|
178
|
-
{
|
|
179
|
-
path: "__testkit__/projects/projects.int.testkit.ts",
|
|
180
|
-
displayName: "Projects",
|
|
181
|
-
service: "dashboard",
|
|
182
|
-
suiteName: "projects",
|
|
183
|
-
selectionType: "int",
|
|
184
|
-
framework: "k6",
|
|
185
|
-
skipped: false,
|
|
186
|
-
},
|
|
187
|
-
],
|
|
188
|
-
coverageGraph: {
|
|
189
|
-
schemaVersion: 1,
|
|
190
|
-
nodes: [
|
|
191
|
-
{
|
|
192
|
-
id: "page_view:dashboard:/projects",
|
|
193
|
-
kind: "page_view",
|
|
194
|
-
service: "dashboard",
|
|
195
|
-
label: "Projects",
|
|
196
|
-
route: "/projects",
|
|
197
|
-
filePath: "src/app/projects/page.tsx",
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
id: "ui_surface:dashboard:/projects:project-create-button",
|
|
201
|
-
kind: "ui_surface",
|
|
202
|
-
service: "dashboard",
|
|
203
|
-
label: "Create Project",
|
|
204
|
-
route: "/projects",
|
|
205
|
-
filePath: "src/app/projects/page.tsx",
|
|
206
|
-
target: { kind: "testId", value: "project-create-button", confidence: "high" },
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
id: "ui_action:dashboard:/projects:handleCreate",
|
|
210
|
-
kind: "ui_action",
|
|
211
|
-
service: "dashboard",
|
|
212
|
-
label: "handleCreate",
|
|
213
|
-
route: "/projects",
|
|
214
|
-
filePath: "src/app/projects/page.tsx",
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
id: "client_request:dashboard:provider:GET:/api/projects",
|
|
218
|
-
kind: "client_request",
|
|
219
|
-
service: "dashboard",
|
|
220
|
-
label: "GET /api/projects",
|
|
221
|
-
route: "/projects",
|
|
222
|
-
method: "GET",
|
|
223
|
-
path: "/api/projects",
|
|
224
|
-
filePath: "src/components/project-context.tsx",
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
id: "client_request:dashboard:projects:POST:/api/projects",
|
|
228
|
-
kind: "client_request",
|
|
229
|
-
service: "dashboard",
|
|
230
|
-
label: "POST /api/projects",
|
|
231
|
-
route: "/projects",
|
|
232
|
-
method: "POST",
|
|
233
|
-
path: "/api/projects",
|
|
234
|
-
filePath: "src/app/projects/page.tsx",
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
id: "api_route:dashboard:GET:/api/projects",
|
|
238
|
-
kind: "api_route",
|
|
239
|
-
service: "dashboard",
|
|
240
|
-
label: "GET /api/projects",
|
|
241
|
-
route: "/projects",
|
|
242
|
-
method: "GET",
|
|
243
|
-
path: "/api/projects",
|
|
244
|
-
filePath: "src/app/api/projects/route.ts",
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
id: "api_route:dashboard:POST:/api/projects",
|
|
248
|
-
kind: "api_route",
|
|
249
|
-
service: "dashboard",
|
|
250
|
-
label: "POST /api/projects",
|
|
251
|
-
route: "/projects",
|
|
252
|
-
method: "POST",
|
|
253
|
-
path: "/api/projects",
|
|
254
|
-
filePath: "src/app/api/projects/route.ts",
|
|
255
|
-
},
|
|
256
|
-
],
|
|
257
|
-
edges: [
|
|
258
|
-
{
|
|
259
|
-
id: "contains:page_view:dashboard:/projects:ui_surface:dashboard:/projects:project-create-button",
|
|
260
|
-
kind: "contains",
|
|
261
|
-
from: "page_view:dashboard:/projects",
|
|
262
|
-
to: "ui_surface:dashboard:/projects:project-create-button",
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
id: "triggers:ui_surface:dashboard:/projects:project-create-button:ui_action:dashboard:/projects:handleCreate",
|
|
266
|
-
kind: "triggers",
|
|
267
|
-
from: "ui_surface:dashboard:/projects:project-create-button",
|
|
268
|
-
to: "ui_action:dashboard:/projects:handleCreate",
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
id: "requests:page_view:dashboard:/projects:client_request:dashboard:provider:GET:/api/projects",
|
|
272
|
-
kind: "requests",
|
|
273
|
-
from: "page_view:dashboard:/projects",
|
|
274
|
-
to: "client_request:dashboard:provider:GET:/api/projects",
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
id: "requests:ui_action:dashboard:/projects:handleCreate:client_request:dashboard:projects:POST:/api/projects",
|
|
278
|
-
kind: "requests",
|
|
279
|
-
from: "ui_action:dashboard:/projects:handleCreate",
|
|
280
|
-
to: "client_request:dashboard:projects:POST:/api/projects",
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
id: "handles:client_request:dashboard:provider:GET:/api/projects:api_route:dashboard:GET:/api/projects",
|
|
284
|
-
kind: "handles",
|
|
285
|
-
from: "client_request:dashboard:provider:GET:/api/projects",
|
|
286
|
-
to: "api_route:dashboard:GET:/api/projects",
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
id: "handles:client_request:dashboard:projects:POST:/api/projects:api_route:dashboard:POST:/api/projects",
|
|
290
|
-
kind: "handles",
|
|
291
|
-
from: "client_request:dashboard:projects:POST:/api/projects",
|
|
292
|
-
to: "api_route:dashboard:POST:/api/projects",
|
|
293
|
-
},
|
|
294
|
-
],
|
|
295
|
-
evidence: [
|
|
296
|
-
{
|
|
297
|
-
id: "evidence:dashboard:__testkit__/projects/projects.int.testkit.ts",
|
|
298
|
-
source: "convention",
|
|
299
|
-
confidence: "high",
|
|
300
|
-
service: "dashboard",
|
|
301
|
-
suiteName: "projects",
|
|
302
|
-
selectionType: "int",
|
|
303
|
-
framework: "k6",
|
|
304
|
-
testFilePath: "__testkit__/projects/projects.int.testkit.ts",
|
|
305
|
-
coveredNodeIds: [
|
|
306
|
-
"api_route:dashboard:GET:/api/projects",
|
|
307
|
-
"api_route:dashboard:POST:/api/projects",
|
|
308
|
-
],
|
|
309
|
-
details: {
|
|
310
|
-
route: "/projects",
|
|
311
|
-
requestPaths: ["/api/projects"],
|
|
312
|
-
},
|
|
313
|
-
},
|
|
314
|
-
],
|
|
315
|
-
diagnostics: [],
|
|
316
|
-
},
|
|
317
|
-
},
|
|
318
|
-
runArtifact: null,
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
describe("testkit bridge", () => {
|
|
322
|
-
it("matches pages against service base URLs", () => {
|
|
323
|
-
expect(buildMatchResponse(context, "http://localhost:3000/coverage")).toMatchObject({
|
|
324
|
-
matched: true,
|
|
325
|
-
route: "/coverage",
|
|
326
|
-
service: {
|
|
327
|
-
name: "web",
|
|
328
|
-
},
|
|
329
|
-
});
|
|
330
|
-
});
|
|
331
|
-
|
|
332
|
-
it("builds page overlay responses from graph coverage and run artifacts", () => {
|
|
333
|
-
expect(buildPageOverlayResponse(context, "http://localhost:3000/coverage")).toMatchObject({
|
|
334
|
-
summary: {
|
|
335
|
-
failureState: "failing",
|
|
336
|
-
coverageState: "covered",
|
|
337
|
-
relatedFailureCount: 2,
|
|
338
|
-
relatedCoverageCount: 2,
|
|
339
|
-
coverageBreakdown: {
|
|
340
|
-
direct: 1,
|
|
341
|
-
indirect: 0,
|
|
342
|
-
mixed: 1,
|
|
343
|
-
},
|
|
344
|
-
},
|
|
345
|
-
failures: expect.arrayContaining([
|
|
346
|
-
expect.objectContaining({
|
|
347
|
-
kind: "page_view",
|
|
348
|
-
label: "Coverage",
|
|
349
|
-
}),
|
|
350
|
-
expect.objectContaining({
|
|
351
|
-
kind: "ui_surface",
|
|
352
|
-
label: "Refresh overlay",
|
|
353
|
-
importance: "high",
|
|
354
|
-
reason: "Refresh overlay is implicated by 1 failing test.",
|
|
355
|
-
targets: [{ kind: "testId", value: "coverage-refresh-button", confidence: "high" }],
|
|
356
|
-
failedTests: [
|
|
357
|
-
expect.objectContaining({
|
|
358
|
-
filePath: "app/coverage/__testkit__/coverage.pw.testkit.ts",
|
|
359
|
-
type: "pw",
|
|
360
|
-
}),
|
|
361
|
-
],
|
|
362
|
-
}),
|
|
363
|
-
]),
|
|
364
|
-
coverage: expect.arrayContaining([
|
|
365
|
-
expect.objectContaining({
|
|
366
|
-
kind: "page_view",
|
|
367
|
-
label: "Coverage",
|
|
368
|
-
supportKind: "direct",
|
|
369
|
-
}),
|
|
370
|
-
expect.objectContaining({
|
|
371
|
-
kind: "ui_surface",
|
|
372
|
-
label: "Refresh overlay",
|
|
373
|
-
importance: "high",
|
|
374
|
-
supportKind: "mixed",
|
|
375
|
-
targets: [{ kind: "testId", value: "coverage-refresh-button", confidence: "high" }],
|
|
376
|
-
supportingTests: [
|
|
377
|
-
expect.objectContaining({
|
|
378
|
-
filePath: "app/coverage/__testkit__/coverage.pw.testkit.ts",
|
|
379
|
-
}),
|
|
380
|
-
expect.objectContaining({
|
|
381
|
-
filePath: "app/api/coverage/__testkit__/coverage.int.testkit.ts",
|
|
382
|
-
}),
|
|
383
|
-
],
|
|
384
|
-
}),
|
|
385
|
-
]),
|
|
386
|
-
});
|
|
387
|
-
});
|
|
388
|
-
|
|
389
|
-
it("retains route-level coverage when support comes from page-owned requests outside any surfaced control", () => {
|
|
390
|
-
expect(buildPageOverlayResponse(routeLevelContext, "http://localhost:3000/projects")).toMatchObject({
|
|
391
|
-
summary: {
|
|
392
|
-
coverageState: "covered",
|
|
393
|
-
relatedCoverageCount: 2,
|
|
394
|
-
},
|
|
395
|
-
coverage: expect.arrayContaining([
|
|
396
|
-
expect.objectContaining({
|
|
397
|
-
kind: "page_view",
|
|
398
|
-
label: "Projects",
|
|
399
|
-
supportKind: "indirect",
|
|
400
|
-
}),
|
|
401
|
-
expect.objectContaining({
|
|
402
|
-
kind: "ui_surface",
|
|
403
|
-
label: "Create Project",
|
|
404
|
-
supportKind: "indirect",
|
|
405
|
-
}),
|
|
406
|
-
]),
|
|
407
|
-
});
|
|
408
|
-
});
|
|
409
|
-
});
|
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
export declare const TESTKIT_BROWSER_PROTOCOL_VERSION = 1;
|
|
2
|
-
export declare const TESTKIT_COVERAGE_GRAPH_VERSION = 1;
|
|
3
|
-
|
|
4
|
-
export type BrowserTargetKind = "testId" | "role" | "text" | "css" | "xpath" | "component";
|
|
5
|
-
export type BrowserConfidence = "low" | "medium" | "high";
|
|
6
|
-
export type BrowserFailureState = "failing" | "healthy" | "unavailable";
|
|
7
|
-
export type BrowserCoverageState = "covered" | "missing" | "unavailable";
|
|
8
|
-
export type BridgeSurfaceImportance = "critical" | "high" | "medium" | "low";
|
|
9
|
-
export type BridgeCoverageSupportKind = "direct" | "indirect" | "mixed";
|
|
10
|
-
|
|
11
|
-
export type CoverageNodeKind =
|
|
12
|
-
| "page_view"
|
|
13
|
-
| "ui_surface"
|
|
14
|
-
| "ui_action"
|
|
15
|
-
| "client_request"
|
|
16
|
-
| "api_route"
|
|
17
|
-
| "server_action"
|
|
18
|
-
| "server_capability"
|
|
19
|
-
| "data_capability"
|
|
20
|
-
| "test_file";
|
|
21
|
-
|
|
22
|
-
export type CoverageEdgeKind =
|
|
23
|
-
| "contains"
|
|
24
|
-
| "renders"
|
|
25
|
-
| "triggers"
|
|
26
|
-
| "requests"
|
|
27
|
-
| "handles"
|
|
28
|
-
| "delegates_to"
|
|
29
|
-
| "covers";
|
|
30
|
-
|
|
31
|
-
export type CoverageEvidenceSource = "convention" | "static" | "runtime";
|
|
32
|
-
|
|
33
|
-
export interface BrowserTarget {
|
|
34
|
-
kind: BrowserTargetKind;
|
|
35
|
-
value: string;
|
|
36
|
-
label?: string;
|
|
37
|
-
confidence?: BrowserConfidence;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface BrowserMetadata {
|
|
41
|
-
label?: string;
|
|
42
|
-
origins?: string[];
|
|
43
|
-
routes?: string[];
|
|
44
|
-
targets?: BrowserTarget[];
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface BrowserMetadataDocument {
|
|
48
|
-
schemaVersion: number;
|
|
49
|
-
browser: BrowserMetadata;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface CoverageGraphNode {
|
|
53
|
-
id: string;
|
|
54
|
-
kind: CoverageNodeKind;
|
|
55
|
-
service: string;
|
|
56
|
-
label: string;
|
|
57
|
-
filePath?: string;
|
|
58
|
-
route?: string;
|
|
59
|
-
method?: string;
|
|
60
|
-
path?: string;
|
|
61
|
-
target?: BrowserTarget | null;
|
|
62
|
-
metadata?: Record<string, string | number | boolean | null>;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface CoverageGraphEdge {
|
|
66
|
-
id: string;
|
|
67
|
-
kind: CoverageEdgeKind;
|
|
68
|
-
from: string;
|
|
69
|
-
to: string;
|
|
70
|
-
confidence?: BrowserConfidence;
|
|
71
|
-
metadata?: Record<string, string | number | boolean | null>;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface CoverageEvidence {
|
|
75
|
-
id: string;
|
|
76
|
-
source: CoverageEvidenceSource;
|
|
77
|
-
confidence?: BrowserConfidence;
|
|
78
|
-
service: string;
|
|
79
|
-
suiteName: string;
|
|
80
|
-
selectionType: string;
|
|
81
|
-
framework: string;
|
|
82
|
-
testFilePath: string;
|
|
83
|
-
coveredNodeIds: string[];
|
|
84
|
-
details?: {
|
|
85
|
-
requestPaths?: string[];
|
|
86
|
-
route?: string;
|
|
87
|
-
targets?: BrowserTarget[];
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export type CoverageGraphDiagnosticLevel = "info" | "warn";
|
|
92
|
-
|
|
93
|
-
export interface CoverageGraphDiagnostic {
|
|
94
|
-
level: CoverageGraphDiagnosticLevel;
|
|
95
|
-
code: string;
|
|
96
|
-
filePath: string;
|
|
97
|
-
service: string;
|
|
98
|
-
message: string;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface CoverageGraph {
|
|
102
|
-
schemaVersion: number;
|
|
103
|
-
nodes: CoverageGraphNode[];
|
|
104
|
-
edges: CoverageGraphEdge[];
|
|
105
|
-
evidence: CoverageEvidence[];
|
|
106
|
-
diagnostics: CoverageGraphDiagnostic[];
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export interface BridgeProductRef {
|
|
110
|
-
name: string;
|
|
111
|
-
directory: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface BridgeServiceRef {
|
|
115
|
-
name: string;
|
|
116
|
-
baseUrl: string;
|
|
117
|
-
origin: string;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export interface BrowserMatchResponse {
|
|
121
|
-
protocolVersion: number;
|
|
122
|
-
url: string;
|
|
123
|
-
origin: string;
|
|
124
|
-
route: string;
|
|
125
|
-
matched: boolean;
|
|
126
|
-
product: BridgeProductRef;
|
|
127
|
-
service: BridgeServiceRef | null;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export interface BridgeRunSummary {
|
|
131
|
-
artifactAvailable: boolean;
|
|
132
|
-
generatedAt: string | null;
|
|
133
|
-
status: string | null;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export interface BridgeSupportingTestRef {
|
|
137
|
-
service: string;
|
|
138
|
-
suite: string;
|
|
139
|
-
type: string;
|
|
140
|
-
framework: string;
|
|
141
|
-
filePath: string;
|
|
142
|
-
label: string;
|
|
143
|
-
status?: "passed" | "failed" | "skipped" | "not_run";
|
|
144
|
-
error?: string | null;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface BridgeCoverageViaNodeRef {
|
|
148
|
-
id: string;
|
|
149
|
-
kind: CoverageNodeKind;
|
|
150
|
-
label: string;
|
|
151
|
-
route?: string;
|
|
152
|
-
method?: string;
|
|
153
|
-
path?: string;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export interface FailureOverlayEntry {
|
|
157
|
-
id: string;
|
|
158
|
-
kind: CoverageNodeKind;
|
|
159
|
-
label: string;
|
|
160
|
-
service: string;
|
|
161
|
-
route?: string | null;
|
|
162
|
-
targets: BrowserTarget[];
|
|
163
|
-
failedTests: BridgeSupportingTestRef[];
|
|
164
|
-
viaNodes: BridgeCoverageViaNodeRef[];
|
|
165
|
-
importance?: BridgeSurfaceImportance;
|
|
166
|
-
surfaceKind?: string | null;
|
|
167
|
-
reason?: string | null;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export interface CoverageOverlayEntry {
|
|
171
|
-
id: string;
|
|
172
|
-
kind: CoverageNodeKind;
|
|
173
|
-
label: string;
|
|
174
|
-
service: string;
|
|
175
|
-
route?: string | null;
|
|
176
|
-
targets: BrowserTarget[];
|
|
177
|
-
supportingTests: BridgeSupportingTestRef[];
|
|
178
|
-
viaNodes: BridgeCoverageViaNodeRef[];
|
|
179
|
-
confidence: BrowserConfidence;
|
|
180
|
-
importance?: BridgeSurfaceImportance;
|
|
181
|
-
surfaceKind?: string | null;
|
|
182
|
-
supportKind?: BridgeCoverageSupportKind;
|
|
183
|
-
reason?: string | null;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export interface PageOverlayResponse {
|
|
187
|
-
protocolVersion: number;
|
|
188
|
-
page: {
|
|
189
|
-
url: string;
|
|
190
|
-
origin: string;
|
|
191
|
-
route: string;
|
|
192
|
-
};
|
|
193
|
-
match: BrowserMatchResponse;
|
|
194
|
-
run: BridgeRunSummary;
|
|
195
|
-
summary: {
|
|
196
|
-
failureState: BrowserFailureState;
|
|
197
|
-
coverageState: BrowserCoverageState;
|
|
198
|
-
relatedFailureCount: number;
|
|
199
|
-
relatedCoverageCount: number;
|
|
200
|
-
coverageBreakdown?: {
|
|
201
|
-
direct: number;
|
|
202
|
-
indirect: number;
|
|
203
|
-
mixed: number;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
failures: FailureOverlayEntry[];
|
|
207
|
-
coverage: CoverageOverlayEntry[];
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export interface BridgeErrorResponse {
|
|
211
|
-
protocolVersion: number;
|
|
212
|
-
error: {
|
|
213
|
-
code: string;
|
|
214
|
-
message: string;
|
|
215
|
-
};
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export declare function normalizeBrowserTarget(value: unknown): BrowserTarget | null;
|
|
219
|
-
export declare function normalizeBrowserMetadata(value: unknown): BrowserMetadata | null;
|
|
220
|
-
export declare function normalizeBrowserMetadataDocument(value: unknown): BrowserMetadataDocument | null;
|
|
221
|
-
export declare function normalizeCoverageGraphNode(value: unknown): CoverageGraphNode | null;
|
|
222
|
-
export declare function normalizeCoverageGraphEdge(value: unknown): CoverageGraphEdge | null;
|
|
223
|
-
export declare function normalizeCoverageEvidence(value: unknown): CoverageEvidence | null;
|
|
224
|
-
export declare function normalizeCoverageGraphDiagnostic(value: unknown): CoverageGraphDiagnostic | null;
|
|
225
|
-
export declare function normalizeCoverageGraph(value: unknown): CoverageGraph | null;
|
|
226
|
-
export declare function normalizePageOverlayResponse(value: unknown): PageOverlayResponse | null;
|
|
227
|
-
export declare function isPageOverlayResponse(value: unknown): value is PageOverlayResponse;
|
|
228
|
-
export declare function createBridgeErrorResponse(
|
|
229
|
-
code: string,
|
|
230
|
-
message: string
|
|
231
|
-
): BridgeErrorResponse;
|