playwright-slack-report 1.0.13 → 1.0.14
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/dist/src/SlackClient.js
CHANGED
|
@@ -34,6 +34,9 @@ class SlackClient {
|
|
|
34
34
|
// eslint-disable-next-line no-console
|
|
35
35
|
console.log(`✅ Message sent to ${channel}`);
|
|
36
36
|
}
|
|
37
|
+
else {
|
|
38
|
+
result.push({ channel, outcome: `❌ Message not sent to ${channel} \r\n ${JSON.stringify(chatResponse, null, 2)}` });
|
|
39
|
+
}
|
|
37
40
|
}
|
|
38
41
|
catch (error) {
|
|
39
42
|
result.push({
|
|
@@ -44,13 +44,15 @@ class SlackReporter {
|
|
|
44
44
|
const slackClient = new SlackClient_1.default(new web_api_1.WebClient(process.env.SLACK_BOT_USER_OAUTH_TOKEN, {
|
|
45
45
|
logLevel: web_api_1.LogLevel.DEBUG,
|
|
46
46
|
}));
|
|
47
|
-
await slackClient.sendMessage({
|
|
47
|
+
const result = await slackClient.sendMessage({
|
|
48
48
|
options: {
|
|
49
49
|
channelIds: this.slackChannels,
|
|
50
50
|
summaryResults: resultSummary,
|
|
51
51
|
customLayout: this.customLayout,
|
|
52
52
|
},
|
|
53
53
|
});
|
|
54
|
+
// eslint-disable-next-line no-console
|
|
55
|
+
console.log(JSON.stringify(result, null, 2));
|
|
54
56
|
}
|
|
55
57
|
preChecks() {
|
|
56
58
|
if (this.sendResults === 'off') {
|
package/package.json
CHANGED