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.
@@ -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
@@ -28,7 +28,7 @@
28
28
  "lint":"npx eslint . --ext .ts"
29
29
  },
30
30
  "name": "playwright-slack-report",
31
- "version": "1.0.13",
31
+ "version": "1.0.14",
32
32
  "main": "index.js",
33
33
  "types": "dist/index.d.ts",
34
34
  "repository": "git@github.com:ryanrosello-og/playwright-slack-report.git",