testlens-playwright-reporter 0.1.5 → 0.1.6

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.
Files changed (3) hide show
  1. package/index.js +10 -10
  2. package/index.ts +10 -10
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
2
+
1
3
  const { randomUUID } = require('crypto');
2
4
  const os = require('os');
3
5
  const path = require('path');
@@ -9,17 +11,15 @@ const FormData = require('form-data');
9
11
  class TestLensReporter {
10
12
  constructor(options = {}) {
11
13
  this.config = {
12
- apiEndpoint: options.apiEndpoint || '',
14
+ apiEndpoint: 'https://testlens.qa-path.com/api/v1/webhook/playwright',
13
15
  apiKey: options.apiKey, // API key must come from config file
14
- enableRealTimeStream: options.enableRealTimeStream !== false,
15
- enableGitInfo: options.enableGitInfo !== false,
16
- enableArtifacts: options.enableArtifacts !== false,
17
- batchSize: options.batchSize || 10,
18
- flushInterval: options.flushInterval || 5000,
19
- retryAttempts: options.retryAttempts || 3,
20
- timeout: options.timeout || 30000,
21
- rejectUnauthorized: options.rejectUnauthorized !== false, // Default to true for security
22
- ignoreSslErrors: options.ignoreSslErrors === true // Explicit opt-in to ignore SSL errors
16
+ enableRealTimeStream: options.enableRealTimeStream,
17
+ enableGitInfo: options.enableGitInfo,
18
+ enableArtifacts: options.enableArtifacts,
19
+ batchSize: options.batchSize,
20
+ flushInterval: options.flushInterval,
21
+ retryAttempts: options.retryAttempts,
22
+ timeout: options.timeout
23
23
  };
24
24
 
25
25
  if (!this.config.apiEndpoint) {
package/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
2
+
1
3
  import { randomUUID } from 'crypto';
2
4
  import * as os from 'os';
3
5
  import * as path from 'path';
@@ -138,17 +140,15 @@ export class TestLensReporter implements Reporter {
138
140
 
139
141
  constructor(options: TestLensReporterOptions) {
140
142
  this.config = {
141
- apiEndpoint: options.apiEndpoint || '',
143
+ apiEndpoint: options.apiEndpoint || 'https://testlens.qa-path.com/api/v1/webhook/playwright',
142
144
  apiKey: options.apiKey, // API key must come from config file
143
- enableRealTimeStream: options.enableRealTimeStream !== false,
144
- enableGitInfo: options.enableGitInfo !== false,
145
- enableArtifacts: options.enableArtifacts !== false,
146
- batchSize: options.batchSize || 10,
147
- flushInterval: options.flushInterval || 5000,
148
- retryAttempts: options.retryAttempts || 3,
149
- timeout: options.timeout || 30000,
150
- rejectUnauthorized: options.rejectUnauthorized !== false, // Default to true for security
151
- ignoreSslErrors: options.ignoreSslErrors === true // Explicit opt-in to ignore SSL errors
145
+ enableRealTimeStream: options.enableRealTimeStream,
146
+ enableGitInfo: options.enableGitInfo,
147
+ enableArtifacts: options.enableArtifacts,
148
+ batchSize: options.batchSize,
149
+ flushInterval: options.flushInterval,
150
+ retryAttempts: options.retryAttempts,
151
+ timeout: options.timeout
152
152
  } as Required<TestLensReporterConfig>;
153
153
 
154
154
  if (!this.config.apiEndpoint) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testlens-playwright-reporter",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Universal Playwright reporter for TestLens - works with both TypeScript and JavaScript projects",
5
5
  "main": "lib/index.js",
6
6
  "types": "index.d.ts",