@nightwatch/browserstack
Advanced tools
Comparing version 3.2.5 to 3.2.6
@@ -300,2 +300,3 @@ const LocalTunnel = require('../src/local-tunnel'); | ||
cucumberPatcher(); | ||
process.env.CUCUMBER_SUITE = 'true'; | ||
settings.test_runner.options['require'] = path.resolve(__dirname, 'observabilityLogPatcherHook.js'); | ||
@@ -302,0 +303,0 @@ } |
{ | ||
"name": "@nightwatch/browserstack", | ||
"version": "3.2.5", | ||
"version": "3.2.6", | ||
"description": "Nightwatch plugin for integration with browserstack.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -688,3 +688,3 @@ const os = require('os'); | ||
exports.isCucumberTestSuite = (settings) => { | ||
return settings?.test_runner?.type === 'cucumber'; | ||
return settings?.test_runner?.type === 'cucumber' || exports.isTrue(process.env.CUCUMBER_SUITE); | ||
}; | ||
@@ -763,1 +763,5 @@ | ||
}; | ||
exports.shouldSendLogs = () => { | ||
return exports.isTestObservabilitySession() && exports.isCucumberTestSuite(); | ||
}; |
@@ -41,2 +41,5 @@ const Transport = require('winston-transport'); | ||
} | ||
if (!helper.shouldSendLogs()) {return} | ||
const pid = process.pid; | ||
@@ -43,0 +46,0 @@ const loggingData = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103072
2544
88