testlens-playwright-reporter 0.1.8 → 0.1.9

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/index.js CHANGED
@@ -13,13 +13,13 @@ class TestLensReporter {
13
13
  this.config = {
14
14
  apiEndpoint: 'https://testlens.qa-path.com/api/v1/webhook/playwright',
15
15
  apiKey: options.apiKey, // API key must come from config file
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
16
+ enableRealTimeStream: options.enableRealTimeStream !== undefined ? options.enableRealTimeStream : true,
17
+ enableGitInfo: options.enableGitInfo !== undefined ? options.enableGitInfo : true,
18
+ enableArtifacts: options.enableArtifacts !== undefined ? options.enableArtifacts : true,
19
+ batchSize: options.batchSize || 10,
20
+ flushInterval: options.flushInterval || 5000,
21
+ retryAttempts: options.retryAttempts !== undefined ? options.retryAttempts : 0,
22
+ timeout: options.timeout || 60000
23
23
  };
24
24
 
25
25
  if (!this.config.apiKey) {
package/index.ts CHANGED
@@ -142,13 +142,13 @@ export class TestLensReporter implements Reporter {
142
142
  this.config = {
143
143
  apiEndpoint: options.apiEndpoint || 'https://testlens.qa-path.com/api/v1/webhook/playwright',
144
144
  apiKey: options.apiKey, // API key must come from config file
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
145
+ enableRealTimeStream: options.enableRealTimeStream !== undefined ? options.enableRealTimeStream : true,
146
+ enableGitInfo: options.enableGitInfo !== undefined ? options.enableGitInfo : true,
147
+ enableArtifacts: options.enableArtifacts !== undefined ? options.enableArtifacts : true,
148
+ batchSize: options.batchSize || 10,
149
+ flushInterval: options.flushInterval || 5000,
150
+ retryAttempts: options.retryAttempts !== undefined ? options.retryAttempts : 0,
151
+ timeout: options.timeout || 60000
152
152
  } as Required<TestLensReporterConfig>;
153
153
 
154
154
  if (!this.config.apiKey) {
package/lib/index.js CHANGED
@@ -51,13 +51,13 @@ class TestLensReporter {
51
51
  this.config = {
52
52
  apiEndpoint: options.apiEndpoint || 'https://testlens.qa-path.com/api/v1/webhook/playwright',
53
53
  apiKey: options.apiKey, // API key must come from config file
54
- enableRealTimeStream: options.enableRealTimeStream,
55
- enableGitInfo: options.enableGitInfo,
56
- enableArtifacts: options.enableArtifacts,
57
- batchSize: options.batchSize,
58
- flushInterval: options.flushInterval,
59
- retryAttempts: options.retryAttempts,
60
- timeout: options.timeout
54
+ enableRealTimeStream: options.enableRealTimeStream !== undefined ? options.enableRealTimeStream : true,
55
+ enableGitInfo: options.enableGitInfo !== undefined ? options.enableGitInfo : true,
56
+ enableArtifacts: options.enableArtifacts !== undefined ? options.enableArtifacts : true,
57
+ batchSize: options.batchSize || 10,
58
+ flushInterval: options.flushInterval || 5000,
59
+ retryAttempts: options.retryAttempts !== undefined ? options.retryAttempts : 0,
60
+ timeout: options.timeout || 60000
61
61
  };
62
62
  if (!this.config.apiKey) {
63
63
  throw new Error('API_KEY is required for TestLensReporter. Pass it as apiKey option in your playwright config.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testlens-playwright-reporter",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
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",