# qase-tms/qase-javascript architecture

> Architecture diagram of the GitHub repository qase-tms/qase-javascript, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/qase-tms/qase-javascript
- Repository: https://github.com/qase-tms/qase-javascript

## Overview

This monorepo provides JavaScript test-framework reporters and API clients for sending execution results to Qase TestOps. The principal workflow is framework execution capture, conversion into shared result data, optional run/configuration and attachment handling, then result upload. The README identifies nine framework integrations and both API versions; those integrations are represented individually. Source excerpts show selected Cucumber, Mocha, and client internals, so links for unsampled reporter implementations are documented at the shared-library level rather than inferred between internal stages.

Main entry points: [`qase-javascript-commons/src`](https://github.com/qase-tms/qase-javascript/tree/main/qase-javascript-commons/src) (Shared reporter library), [`qase-javascript-commons/src/client/clientV1.ts`](https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/clientV1.ts) (Shared API client V1), [`qase-javascript-commons/src/client/clientV2.ts`](https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/clientV2.ts) (Shared API client V2), [`qase-javascript-commons/src/client/services/attachment-service.ts`](https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/services/attachment-service.ts) (Attachment uploads)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_adapters["Framework reporters"]
  node_cucumber["CucumberJS reporter<br/>[reporter.ts]"]
  node_cypress["Cypress reporter<br/>[reporter.ts]"]
  node_jest["Jest reporter<br/>[reporter.ts]"]
  node_mocha["Mocha reporter<br/>[reporter.ts]"]
  node_newman["Newman reporter<br/>[reporter.ts]"]
  node_playwright["Playwright reporter<br/>[reporter.ts]"]
  node_testcafe["TestCafe reporter<br/>[reporter.ts]"]
  node_vitest["Vitest reporter<br/>[index.ts]"]
  node_wdio["WebdriverIO reporter<br/>[reporter.ts]"]
end

subgraph group_shared["Shared reporting"]
  node_commons["Shared reporter library"]
  node_resultmodels["Result models<br/>[test-result.ts]"]
  node_config["Options and configuration"]
  node_clientv1["Shared API client V1<br/>[clientV1.ts]"]
  node_runservice["Run lifecycle<br/>[run-service.ts]"]
  node_attachments["Attachment uploads"]
  node_transformer["Result transformation"]
  node_transport["API configuration"]
  node_clientv2["Shared API client V2<br/>[clientV2.ts]"]
end

subgraph group_v1["API v1 client"]
  node_clientv1api["Generated API V1"]
end

subgraph group_v2["API v2 client"]
  node_clientv2api["Generated API V2<br/>[results-api.ts]"]
end

node_qase(("Qase TestOps"))

node_cucumber -->|"uses shared library"| node_commons
node_cypress -->|"uses shared library"| node_commons
node_jest -->|"uses shared library"| node_commons
node_mocha -->|"uses shared library"| node_commons
node_newman -->|"uses shared library"| node_commons
node_playwright -->|"uses shared library"| node_commons
node_testcafe -->|"uses shared library"| node_commons
node_vitest -->|"uses shared library"| node_commons
node_wdio -->|"uses shared library"| node_commons
node_commons -->|"uses result types"| node_resultmodels
node_clientv1 -->|"accepts options"| node_config
node_clientv1 -->|"delegates run lifecycle"| node_runservice
node_clientv1 -->|"creates upload service"| node_attachments
node_clientv1 -->|"builds API config"| node_transport
node_clientv1 -->|"calls generated APIs"| node_clientv1api
node_clientv2 -->|"extends client"| node_clientv1
node_clientv2 -->|"transforms results"| node_transformer
node_clientv2 -->|"uploads attachments"| node_attachments
node_clientv2 -->|"submits results"| node_clientv2api
node_attachments -->|"uploads files"| node_clientv1api
node_runservice -->|"manages runs"| node_clientv1api
node_clientv1 -.->|"reports through API"| node_qase
node_clientv2 -.->|"reports through API"| node_qase

click node_cucumber "https://github.com/qase-tms/qase-javascript/blob/main/qase-cucumberjs/src/reporter.ts"
click node_cypress "https://github.com/qase-tms/qase-javascript/blob/main/qase-cypress/src/reporter.ts"
click node_jest "https://github.com/qase-tms/qase-javascript/blob/main/qase-jest/src/reporter.ts"
click node_mocha "https://github.com/qase-tms/qase-javascript/blob/main/qase-mocha/src/reporter.ts"
click node_newman "https://github.com/qase-tms/qase-javascript/blob/main/qase-newman/src/reporter.ts"
click node_playwright "https://github.com/qase-tms/qase-javascript/blob/main/qase-playwright/src/reporter.ts"
click node_testcafe "https://github.com/qase-tms/qase-javascript/blob/main/qase-testcafe/src/reporter.ts"
click node_vitest "https://github.com/qase-tms/qase-javascript/blob/main/qase-vitest/src/index.ts"
click node_wdio "https://github.com/qase-tms/qase-javascript/blob/main/qase-wdio/src/reporter.ts"
click node_commons "https://github.com/qase-tms/qase-javascript/tree/main/qase-javascript-commons/src"
click node_resultmodels "https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/models/test-result.ts"
click node_config "https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/models/config/TestOpsOptionsType.ts"
click node_clientv1 "https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/clientV1.ts"
click node_runservice "https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/services/run-service.ts"
click node_attachments "https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/services/attachment-service.ts"
click node_transformer "https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/services/result-transformer.ts"
click node_transport "https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/transport/api-config-builder.ts"
click node_clientv1api "https://github.com/qase-tms/qase-javascript/tree/main/qase-api-client/src/api"
click node_clientv2 "https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/clientV2.ts"
click node_clientv2api "https://github.com/qase-tms/qase-javascript/blob/main/qase-api-v2-client/src/api/results-api.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cucumber,node_cypress,node_jest,node_mocha,node_newman,node_playwright,node_testcafe,node_vitest,node_wdio toneBlue
class node_commons,node_resultmodels,node_config,node_clientv1,node_runservice,node_attachments,node_transformer,node_transport,node_clientv2 toneAmber
class node_clientv1api toneMint
class node_clientv2api toneRose
class node_qase toneIndigo
```

## Components

### Framework reporters

- [CucumberJS reporter](https://github.com/qase-tms/qase-javascript/blob/main/qase-cucumberjs/src/reporter.ts): `qase-cucumberjs/src/reporter.ts`
- [Cypress reporter](https://github.com/qase-tms/qase-javascript/blob/main/qase-cypress/src/reporter.ts): `qase-cypress/src/reporter.ts`
- [Jest reporter](https://github.com/qase-tms/qase-javascript/blob/main/qase-jest/src/reporter.ts): `qase-jest/src/reporter.ts`
- [Mocha reporter](https://github.com/qase-tms/qase-javascript/blob/main/qase-mocha/src/reporter.ts): `qase-mocha/src/reporter.ts`
- [Newman reporter](https://github.com/qase-tms/qase-javascript/blob/main/qase-newman/src/reporter.ts): `qase-newman/src/reporter.ts`
- [Playwright reporter](https://github.com/qase-tms/qase-javascript/blob/main/qase-playwright/src/reporter.ts): `qase-playwright/src/reporter.ts`
- [TestCafe reporter](https://github.com/qase-tms/qase-javascript/blob/main/qase-testcafe/src/reporter.ts): `qase-testcafe/src/reporter.ts`
- [Vitest reporter](https://github.com/qase-tms/qase-javascript/blob/main/qase-vitest/src/index.ts): `qase-vitest/src/index.ts`
- [WebdriverIO reporter](https://github.com/qase-tms/qase-javascript/blob/main/qase-wdio/src/reporter.ts): `qase-wdio/src/reporter.ts`

### Shared reporting

- [Shared reporter library](https://github.com/qase-tms/qase-javascript/tree/main/qase-javascript-commons/src): `qase-javascript-commons/src`
- [Result models](https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/models/test-result.ts): `qase-javascript-commons/src/models/test-result.ts`
- [Options and configuration](https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/models/config/TestOpsOptionsType.ts): `qase-javascript-commons/src/models/config/TestOpsOptionsType.ts`
- [Shared API client V1](https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/clientV1.ts): `qase-javascript-commons/src/client/clientV1.ts`
- [Run lifecycle](https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/services/run-service.ts): `qase-javascript-commons/src/client/services/run-service.ts`
- [Attachment uploads](https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/services/attachment-service.ts): `qase-javascript-commons/src/client/services/attachment-service.ts`
- [Result transformation](https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/services/result-transformer.ts): `qase-javascript-commons/src/client/services/result-transformer.ts`
- [API configuration](https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/transport/api-config-builder.ts): `qase-javascript-commons/src/client/transport/api-config-builder.ts`
- [Shared API client V2](https://github.com/qase-tms/qase-javascript/blob/main/qase-javascript-commons/src/client/clientV2.ts): `qase-javascript-commons/src/client/clientV2.ts`

### API v1 client

- [Generated API V1](https://github.com/qase-tms/qase-javascript/tree/main/qase-api-client/src/api): `qase-api-client/src/api`

### API v2 client

- [Generated API V2](https://github.com/qase-tms/qase-javascript/blob/main/qase-api-v2-client/src/api/results-api.ts): `qase-api-v2-client/src/api/results-api.ts`

### Other components

- **Qase TestOps**

## Connections

- CucumberJS reporter → Shared reporter library: uses shared library (evidence: `README.md`)
- Cypress reporter → Shared reporter library: uses shared library (evidence: `README.md`)
- Jest reporter → Shared reporter library: uses shared library (evidence: `README.md`)
- Mocha reporter → Shared reporter library: uses shared library (evidence: `README.md`)
- Newman reporter → Shared reporter library: uses shared library (evidence: `README.md`)
- Playwright reporter → Shared reporter library: uses shared library (evidence: `README.md`)
- TestCafe reporter → Shared reporter library: uses shared library (evidence: `README.md`)
- Vitest reporter → Shared reporter library: uses shared library (evidence: `README.md`)
- WebdriverIO reporter → Shared reporter library: uses shared library (evidence: `README.md`)
- Shared reporter library → Result models: uses result types (evidence: `qase-javascript-commons/src/models/index.ts`)
- Shared API client V1 → Options and configuration: accepts options (evidence: `qase-javascript-commons/src/client/clientV1.ts`)
- Shared API client V1 → Run lifecycle: delegates run lifecycle (evidence: `qase-javascript-commons/src/client/clientV1.ts`)
- Shared API client V1 → Attachment uploads: creates upload service (evidence: `qase-javascript-commons/src/client/clientV1.ts`)
- Shared API client V1 → API configuration: builds API config (evidence: `qase-javascript-commons/src/client/clientV1.ts`)
- Shared API client V1 → Generated API V1: calls generated APIs (evidence: `qase-javascript-commons/src/client/clientV1.ts`)
- Shared API client V2 → Shared API client V1: extends client (evidence: `qase-javascript-commons/src/client/clientV2.ts`)
- Shared API client V2 → Result transformation: transforms results (evidence: `qase-javascript-commons/src/client/clientV2.ts`)
- Shared API client V2 → Attachment uploads: uploads attachments (evidence: `qase-javascript-commons/src/client/clientV2.ts`)
- Shared API client V2 → Generated API V2: submits results (evidence: `qase-javascript-commons/src/client/clientV2.ts`)
- Attachment uploads → Generated API V1: uploads files (evidence: `qase-javascript-commons/src/client/services/attachment-service.ts`)
- Run lifecycle → Generated API V1: manages runs (evidence: `qase-javascript-commons/src/client/services/run-service.ts`)
- Shared API client V1 → Qase TestOps: reports through API
- Shared API client V2 → Qase TestOps: reports through API
